Install vsftpd on CentOS
To install vsftpd FTP server in CentOS, run
1 |
yum install -y vsftpd |
Enable vsftpd to start on boot
1 |
systemctl enable vsftpd |
Edit configuration file
1 |
vi /etc/vsftpd/vsftpd.conf |
You need to update/add following configuration options
1 2 3 4 5 |
chroot_local_user=YES allow_writeable_chroot=YES local_umask=002 file_open_mode=0755 force_dot_files=YES |
Restart vsftpd
1 |
systemctl restart vsftpd |
Allow System Accounts to login
1 2 |
local_enable=YES write_enable=YES |
Find
1 |
anonymous_enable=YES |
Replace With
1 |
anonymous_enable=NO |
Find
1 |
#chroot_local_user=YES |
Replace with
1 |
chroot_local_user=YES |
Add
1 2 3 |
allow_writeable_chroot=YES local_umask=002 file_open_mode=0755 |
See vsftpd