1
2
|
guest_username=ftptest #虚拟用户映射的系统用户
pam_service_name=vsftpd #PAM读取的配置
|
1
2
|
#db_load -T -t hash -f ./login.txt /etc/vsftpd/login.db #生成文件
#chmod
600
/etc/vsftpd/login.db #更改权限
|
1
2
3
4
5
6
7
8
9
10
|
#%PAM-1.0
auth sufficient pam_userdb.so db=
/etc/vsftpd/vsftpd_login
account sufficient pam_userdb.so db=
/etc/vsftpd/vsftpd_login
session optional pam_keyinit.so force revoke
auth required pam_listfile.so item=user sense=deny
file
=
/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
|