Vsftpd anonymous access

Posted by Pavlo Khmel on Sat 20 December 2008

Install:

yum install vsftpd

Change settings /etc/vsftpd/vsftpd.conf:

anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
no_anon_password=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES

Change permissions:

chmod -R 777 /var/ftp/pub

Restart service:

/etc/init.d/vsftpd restart

Additional

Access to ftp only for users: phn, phn1, phn2:

userlist_deny=NO
userlist_enable=YES
userlist_file=/etc/vsftpd/allowed_users

# cat /etc/vsftpd/allowed_users
phn
phn1
phn2

Anonymous access only:

local_enable=NO