Close

Install VSFTPD and setup user

Install VSFTPD and setup user

1. Type this

[code leg=”php”]# cd /tmp[/code]

2. Install VSFTPD

[code leg=”php”]#  yum install vsftp[/code]

3. Open vsftpd configuration file – /etc/vsftpd/vsftpd.conf

[code leg=”php”]# vi /etc/vsftpd/vsftpd.conf[/code]

4. Make sure following line exists (and uncommented)

[code leg=”php”]chroot_local_user=YES[/code]

5. Add user to FTP

[code leg=”php”]# adduser -c ‘FTP USER Tom’ -m tom
# passwd tom[/code]

6. Ensure that vsftpd runs at boot, run chkconfig
[code leg=”php”]#chkconfig vsftpd on[/code]

7. Restart vsftpd

[code leg=”php”]# /etc/init.d/vsftpd restart[/code]