username:admin
passwd:admin
只允许内网访问
http://blog.sina.com.cn/s/blog_a97c78020101o8fv.html
yum install vsftpd
/etc/init.d/vsftpd start
yum install db4-utils
cd /etc/vsftpd/backup
vi vftpuser.txt
db_load -T -t hash -f vftpuser.txt /etc/vsftpd/backup/vftpuser.db
vi /etc/passwd
查看是否有该行ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
vi /etc/pam.d/vsftpd
#%PAM-1.0
#session optional pam_keyinit.so force revoke
#auth required pam_listfile.so item=user sense=denyfile=/etc/vsftpd/ftpusers onerr=succeed
#auth required pam_shells.so
#auth include system-auth
#account include system-auth
#session include system-auth
#session required pam_loginuid.so
以上全部注释掉,增加以下两行(注意这里有32位和64位系统的区别)
auth required /lib64/security/pam_userdb.so db=/etc/vsftpd/backup/vftpuser
account required /lib64/security/pam_userdb.so db=/etc/vsftpd/backup/vftpuser
chmod 777 /data/media/upload
chkconfig vsftpd on