[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Error when trying to su (PAM issue???)



When I'm logged in as a regular user I am unable to use su. I get the error
"incorrect password"
I know the password is correct because I can login as root with the same
password. However, I can use su with the root user. I have checked the
permissions on the /bin/su file. They are -rwsr-xr-x.  I have also checked
the /bin/login file. They are rwSr-xr-x

I am thinking this is a PAM issue. But I'm not very familiar with PAM.

below are the /etc/pam.d/su and /etc/pam.d/login files

su
#%PAM-1.0
auth       required     /lib/security/pam_wheel.so
auth       sufficient   /lib/security/pam_rootok.so
auth       required     /lib/security/pam_pwdb.so shadow nullok
account    required     /lib/security/pam_pwdb.so
session    required     /lib/security/pam_pwdb.so

login
#%PAM-1.0
auth       requisite    /lib/security/pam_securetty.so
auth       requisite    /lib/security/pam_nologin.so
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 type=login
password   required     /lib/security/pam_pwdb.so shadow md5 nullok
use_authtok
session    required     /lib/security/pam_pwdb.so

Thanks for your help.