Install:

sudo yum install vsftpd
sudo yum install ftp

Edit:

sudo nano /etc/vsftpd/vsftpd.conf

Change:

anonymous_enable=NO
chroot_local_user=YES

Then:

sudo service vsftpd start

To make it auto-starts at boot:

chkconfig vsftpd on

Adding a user:

adduser newusername
passwd newusername

Edit:

sudo nano /etc/shells

Add this, at end:

/dev/null

Run:

usermod -d /home/USERDIRECTORY newusername

Edit:

/etc/passwd

Change:

newusername:x:502:502::/home/USERDIRECTORY/:/dev/null

Then:

sudo service vsftpd restart
Advertisement