|
楼主 |
发表于 2010-9-7 15:31:10
|
显示全部楼层
大致 配置 文件 如下
vsftp.conf
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
pam_service_name=vsftpd
guest_enable=YES
guest_username=ftp
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_umask=022
/etc/pam.d/vsftpd
auth required /lib/security/pam_mysql.so user=ftp passwd=ftp host=localhost db=vsftpd table=users usercolumn=name passwdcolumn=passwd crypt=2
account required /lib/security/pam_mysql.so user=ftp passwd=ftp host=localhost db=vsftpd table=users usercolumn=name passwdcolumn=passwd crypt=2
/etc/passwd
ftp:x:45:45:anonymous_user:/home/ftp:/bin/false |
|