[求助]:Selinux 安裝poppassd,發現沒有PAM_pwdb.so
在redhat as5上安裝了poppassd,在pam里做了設置,poppassd 的106埠也起來了
通過telnet這個埠來測試是否能夠修改密碼,始終發現出現:
200 poppassd v1.8.5 hello, who are you?
username test
200 Your password please.
password 123456
500 Old password is incorrect.
pam里的poppassd文件如下:
#%PAM-1.0
auth required /lib/security/pam_pwdb.so shadow nullok
account required /lib/security/pam_pwdb.so
password required /lib/security/pam_cracklib.so retry=3
password required /lib/security/pam_pwdb.so use_authtok nullok
但是檢查/lib/security/pam_pwdb.so 該文件比不存在
不知道為什麼,還請高手幫忙分析問題
不甚感激
《解決方案》
補充以下日誌
security 日誌:
Aug 16 09:53:08 localhost login: FAILED LOGIN 2 FROM localhost FOR , User not kn
own to the underlying authentication module
Aug 16 09:53:08 localhost login: pam_unix(remote:auth): bad username []
Aug 16 09:53:08 localhost login: pam_succeed_if(remote:auth): error retrieving i
nformation about user
Aug 16 09:53:08 localhost login: FAILED LOGIN 3 FROM localhost FOR , User not kn
own to the underlying authentication module
Aug 16 09:53:09 localhost login: pam_unix(remote:auth): bad username []
Aug 16 09:53:09 localhost login: pam_succeed_if(remote:auth): error retrieving i
nformation about user
Aug 16 09:53:09 localhost login: FAILED LOGIN SESSION FROM localhost FOR , User
not known to the underlying authentication module
Aug 16 09:53:25 localhost poppassd: pam_unix(passwd:auth): check pass; us
er unknown
Aug 16 09:53:25 localhost poppassd: pam_unix(passwd:auth): authentication
failure; logname= uid=0 euid=0 tty= ruser= rhost=
Aug 16 09:53:25 localhost poppassd: pam_succeed_if(passwd:auth): error re
trieving information about user name
poppassd 日誌:
Aug 16 08:31:14 localhost poppassd: old password is incorrect for user na
me
Aug 16 08:33:11 localhost poppassd: old password is incorrect for user na
me
Aug 16 09:09:43 localhost poppassd: PAM error: BAD PASSWORD: it is too si
mplistic/systematic
Aug 16 09:09:43 localhost last message repeated 2 times
Aug 16 09:09:43 localhost poppassd: changed POP3 password for test
Aug 16 09:53:28 localhost poppassd: old password is incorrect for user na
me
message的日誌
Aug 16 09:52:55 localhost xinetd: xinetd Version 2.3.14 started with libw
rap loadavg labeled-networking options compiled in.
Aug 16 09:52:55 localhost xinetd: Started working: 2 available services
Aug 16 09:53:05 localhost xinetd: START: telnet pid=29038 from=127.0.0.1
Aug 16 09:53:09 localhost xinetd: EXIT: telnet status=0 pid=29038 duratio
n=4(sec)
Aug 16 09:53:12 localhost xinetd: START: poppassd pid=29041 from=127.0.0.
1
Aug 16 09:53:28 localhost poppassd: old password is incorrect for user na
me
Aug 16 09:53:31 localhost xinetd: EXIT: poppassd status=1 pid=29041 durat
ion=19(sec)
《解決方案》
/ect/pam.d/poppassd文件內容如下
#%PAM-1.0M-1.0
auth required /lib/security/pam_pwdb.so shadow nullok
account required /lib/security/pam_pwdb.so
password required /lib/security/pam_cracklib.so retry=3
password required /lib/security/pam_pwdb.so use_authtok nullok
/etc/xinetd.d/poppassd文件內容如下:
# default: off
# description: The POPPASSD service allows remote users to change their
# password remotely via Eudora or NUPOP using a network
# protocol on port 106.
#
service poppassd
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/poppassd
only_from = 127.0.0.1
log_on_success += USERID
log_on_failure += USERID
}
使用telnet來測試
# telnet 127.0.0.1 106
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
200 poppassd v1.8.1 hello, who are you?
username test
200 Your password please.
password 123456
500 Old password is incorrect.
Connection closed by foreign host.
:em14: 明明密碼是對的,就是認不出來,還請高手幫我分析下,謝謝
《解決方案》
我也遇到一樣的問題了呵呵