the item ruser of pam_listfile.so cann`t work

liuruihong liuruihong at baidu.com
Sat Dec 29 04:04:19 UTC 2007


My  /etc/pam.d/sshd on sz-ssl-test00.sz01:

#%PAM-1.0

auth       required     pam_listfile.so onerr=succeed item=ruser sense=allow
file=/etc/test

auth       required     pam_stack.so service=system-auth

auth       required     pam_nologin.so

account    required     pam_stack.so service=system-auth

password   required     pam_stack.so service=system-auth

session    required     pam_stack.so service=system-auth

session    required     pam_loginuid.so

there are only one user in /etc/test:

lrh

 

when I login from remote using commands as fllows:

[lrh at test15 home]$ ssh liuruihong at sz-ssl-test00.sz01

liuruihong at sz-ssl-test00.sz01's password: 

Permission denied, please try again.

liuruihong at sz-ssl-test00.sz01's password: 

[lrh at test15 home]$

 

I cann`t login ,why? 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pam-list/attachments/20071229/34c4030c/attachment.htm>


More information about the Pam-list mailing list