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!!

posted on 2012-08-10 15:57  pchgo  阅读(1645)  评论(0编辑  收藏  举报