# yum -y install vsftpd ftp
# vi /etc/vsftpd/vsftpd.conf
Disallow anonymous, unidentified users to access files via FTP; change the
anonymous_enable setting to NO:
anonymous_enable=NO
Allow local uses to login by changing the local_enable setting to YES:
local_enable=YES
If you want local user to be able to write to a directory, then change the write_enable setting to YES:
write_enable=YES
Local users will be ‘chroot jailed’ and they will be denied access to any other part of the server; change the chroot_local_user setting to YES:
chroot_local_user=YES
# systemctl enable vsftpd
# systemctl restart vsftpd
# firewall-cmd --permanent --add-port=21/tcp
# firewall-cmd --reload
No comments:
Post a Comment