I've installed vsftp and am trying to configure it to allow anonymous access. I want to be able to ftp to my server through a browser (I currently can ftp using an 3rd party ftp client) so that anyone can access a specific "public" ftp area to place files and download files from. I also want to set up a different directory (username/password protected) to allow users to put & get files from that location as well and restrict them from going anywhere else except to their home directory.
I am currently getting the following error when I try to ftp as anonymous to my server with the URL of ftp://domain.com:
Error: "550 Failed to Change Directory"
I can access the server with a local user using the username/password and it directs me to the home directory for that user but it allows me to change directories to access the entire server. I don't want that. I would like the local users that login to all go to one specific directory but then be able to cd to their home directory.
Here is my vsftpd.conf file:
anonymous_enable=YES
use_localtime=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_root=/ftp/pub
no_anon_password=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
ascii_upload_enable=YES
download_enable=YES
ftpd_banner=Welcome to Summit Financial Group FTP service.
banned_email_file=/etc/vsftpd.banned_emails
chroot_list_file=/etc/vsftpd.chroot_list
ls_recurse_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
Your help is greatly appreciate.
Thanks.
I am currently getting the following error when I try to ftp as anonymous to my server with the URL of ftp://domain.com:
Error: "550 Failed to Change Directory"
I can access the server with a local user using the username/password and it directs me to the home directory for that user but it allows me to change directories to access the entire server. I don't want that. I would like the local users that login to all go to one specific directory but then be able to cd to their home directory.
Here is my vsftpd.conf file:
anonymous_enable=YES
use_localtime=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_root=/ftp/pub
no_anon_password=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
ascii_upload_enable=YES
download_enable=YES
ftpd_banner=Welcome to Summit Financial Group FTP service.
banned_email_file=/etc/vsftpd.banned_emails
chroot_list_file=/etc/vsftpd.chroot_list
ls_recurse_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
Your help is greatly appreciate.
Thanks.