MD5 disabled the 'su' and 'logon' command

MD5 disabled the 'su' and 'logon' command

Post by Mich » Sun, 07 Apr 2002 20:32:42



I've recently installed MD5 password encryption and since then i
cannot use the 'su' or 'logon'(on a xterm) command.
It looks like the 'su' command cannot read my root password.
I can login normaly as root and it accepts the pass.
I have tried this in several shells and it's the same in all of them.

Here's what i do and the content of my /etc/pam.d/su file:

-----------------------------------


Password:
su: incorrect password

-----------------------------------

moon:/etc/pam.d # less su
#%PAM-1.0
auth     sufficient     pam_rootok.so
auth     required       pam_unix.so     nullok #set_secrpc
account  required       pam_unix.so
password required       /lib/security/pam_pwcheck.so   \
                     nullok md5
#password required       /lib/security/pam_unix.so      \
                     nullok md5 use_first_pass use_authtok
#password required       pam_unix.so
session required        pam_homecheck.so
session  required       pam_unix.so     debug # none or trace

-----------------------------------

How can i get 'su' to read the right password? Or is it not compatible
with MD5?

Cheers guys :)