Unix-chkpwd problem with Linux-PAM-1.1-1 trying to run su from shadow-4.1.4.2
I am trying to run su as a non privileged user to log in as root.
However, this only works when I make /etc/shadow world readable. I have /lib/security/unix_chkpwd as a setuid root executable I use the following pam-file for su: Code:
# Begin /etc/pam.d/su |
I kept getting errors in auth.log like:
Code:
unix_chkpwd[7569]: check pass; user unknown However, I had /bin/su as a regular executable. Once I changed this to setuid root, everything worked. So sorry, false alarm. |
I have the same problem. What do you mean, that: "Once I changed this to setuid root, everything worked." What have you changed?
|
The /bin/su command should be run as root, even if it is called by a different user.
This can be done by having it owned by the root user and setting the setuid bit. Have a look at: http://linuxg.net/how-to-set-the-set...inux-and-unix/ |
"chmod u+s /bin/su"
It works now. Thx a lot! |
All times are GMT -5. The time now is 06:16 PM. |