以下为/etc/pam.d/vsftpd的内容
[root@localhost vsftpd]# more /etc/pam.d/vsftp
#%PAM-1.0
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
/etc/vsftpd/ftpusers内容
[root@localhost vsftpd]# more /etc/vsftpd/ftpusers
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
/etc/vsftpd/user_list内容
[root@localhost vsftpd]# more /etc/vsftpd/user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
ftpuser
/etc/vsftpd/chroot_list内容
[root@localhost vsftpd]# more chroot_list
ftpuser