**不匹配的条目**pam_列表文件(proftpd:auth):无法';t打开/etc/ftpusers

**不匹配的条目**pam_列表文件(proftpd:auth):无法';t打开/etc/ftpusers,ftp,centos,plesk,dedicated-server,Ftp,Centos,Plesk,Dedicated Server,我在日志监视中反复收到以下错误: **Unmatched Entries** pam_listfile(proftpd:auth): Couldn't open /etc/ftpusers pam_env(proftpd:setcred): Unable to open config file: /etc/security/pam_env.conf: No such file or directory pam_listfile(proftpd:auth): Couldn't open /e

我在日志监视中反复收到以下错误:

**Unmatched Entries**
 pam_listfile(proftpd:auth): Couldn't open /etc/ftpusers
 pam_env(proftpd:setcred): Unable to open config file: /etc/security/pam_env.conf: No such file or directory
 pam_listfile(proftpd:auth): Couldn't open /etc/ftpusers
 pam_env(proftpd:setcred): Unable to open config file: /etc/security/pam_env.conf: No such file or directory
1) 我注意到服务器上不存在/etc/ftpusers
2) 下面是/var/log/secure内容:

Dec  6 10:34:38 ServerName proftpd: pam_listfile(proftpd:auth): Couldn't open /etc/ftpusers
Dec  6 10:34:38 ServerName proftpd[7862]: 159.253.140.155 (94.195.237.136[94.195.237.136]) - USER userName: Login successful.
Dec  6 10:35:39 ServerName proftpd: pam_listfile(proftpd:auth): Couldn't open /etc/ftpusers
Dec  6 10:35:39 ServerName proftpd[7909]: 159.253.140.155 (94.195.237.136[94.195.237.136]) - USER userName: Login successful.
Dec  6 10:45:51 ServerName proftpd: pam_env(proftpd:setcred): Unable to open config file: /etc/security/pam_env.conf: No such file or directory
Dec  6 10:45:51 ServerName proftpd: pam_env(proftpd:setcred): Unable to open config file: /etc/security/pam_env.conf: No such file or directory
Dec  6 12:38:37 ServerName usermng[11045]: pam_unix(passwd:chauthtok): password changed for userName
3) 这里是pam_env.conf,它显示
没有这样的文件或目录

# ls /etc/security/pam_env.conf -l
-rw-r--r-- 1 root root 2980 Aug 18 09:26 /etc/security/pam_env.conf
请告知。期待中的感谢

尝试执行以下操作:

Make a backup of /etc/pam.d/proftpd:

# cp -p /etc/pam.d/proftpd /root/proftpd

Replace content of /etc/pam.d/proftpd with:

#%PAM-1.0M-1.0
auth required pam_listfile.so item=user sense=deny file=/etc/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

Restart ftp service:

# service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
尝试执行以下操作:

Make a backup of /etc/pam.d/proftpd:

# cp -p /etc/pam.d/proftpd /root/proftpd

Replace content of /etc/pam.d/proftpd with:

#%PAM-1.0M-1.0
auth required pam_listfile.so item=user sense=deny file=/etc/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

Restart ftp service:

# service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]

我强烈建议将此问题移至serverfault帮助论坛。我强烈建议将此问题移至serverfault帮助论坛