mkdir /home/vsftpd && chmod 777 /home/vsftpd
useradd vsftpd -d /home/vsftpd -s /bin/false
chown vsftpd:vsftpd /home/vsftpd
nano /home/vsftpd/logins.txt
pchgo
pchgo
db4.8_load -T -t hash -f /home/vsftpd/logins.txt /etc/vsftpd_login.db
chmod 600 /etc/vsftpd.login.db
cp /usr/share/doc/vsftpd/examples/VITURAL_USERS/vsftpd.pam /etc/pam.d/vsftpd
cp /usr/share/doc/vsftpd/examples/VITURAL_USERS/vsftpd.conf /etc/vsftpd.conf
/etc/init.d/vsftpd start
That's all!
--------------------------------------------------------------
echo "user_config_dir=/etc/vsftpd_user_conf">>/etc/vsftpd.conf
mkdir /etc/vsftpd_user_conf
nano /etc/vsftpd_user_conf/pchgo
local_root=/home/vsftpd
That's all!!