vsftpd+mysql
#%PAM-1.0
auth required pam_mysql.so user=jsh passwd=auqjfypm host=localhost db=ftp table=user usercolumn=name passwdcolumn=passwd crypt=2
account required pam_mysql.so user=jsh passwd=auqjfypm host=localhost db=ftp table=user usercolumn=name passwdcolumn=passwd crypt=2
password required pam_mysql.so user=jsh passwd=auqjfypm host=localhost db=ftp table=user usercolumn=name passwdcolumn=passwd crypt=2
session required pam_mysql.so user=jsh passwd=auqjfypm host=localhost db=ftp table=user usercolumn=name passwdcolumn=passwd crypt=2
auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd.ftpusers onerr=succeed
auth required pam_stack.so service=system-auth
auth required pam_shells.so
account required pam_stack.so service=system-auth
session required pam_stack.so service=system-auth
RH9.0
vsftp1.1.3.conf
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YESxferlog_std_format=YES
guest_enable=yes
guest_username=jsh
pam_service_name=vsftpd
#userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
MYSQL中权限为用户jsh读。以有两个用户.用这两个用户上FTP时出现
Dec 6 09:59:07 helix vsftpd: warning: can't get client address: Bad file descriptor
Dec 6 09:59:10 helix vsftpd(pam_unix)[5319]: check pass; user unknown
Dec 6 09:59:10 helix vsftpd(pam_unix)[5319]: authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=127.0.0.1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论