Install VSFTPD on CentOS Enable local user to log in to their home directory

Install VSFTPD on CentOS, enable L

$ yum install vsftpd

Make necessary configurations for vsftpd

$ vim /etc/vsftpd/vsftpd.conf

There are many configuration options, configure according to your needs.

Disable anonymous FTP

anonymous_enable=NO

Allow local user to log in

local_enable=YES

trap FTP users in their own /home/username directory

chroot_local_user=YES

 

Start the vsftpd service

$ /etc/init.d/vsftpd start

 Turn on vsftpd service on boot

$chkconfig vsftpd on

 

If you can not get access to the FTP server, check the iptables at /etc/sysconfig/iptables to allow whichever port you used for your vsftpd

and restart the iptables /etc/init.d/iptables restart

 

No comments:

Post a Comment

Datatable static image not found on the server

When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...