su - password not accepted; root console login fine
Slackware 12.0
Just a recent occurrence. I can login as root, no problem. However, I can't su - without the password being rejected. I can sudo -s to root. I'm stumped. |
When did it start happening? Are you using PAM? If so, what does your /etc/pam.d/su file look like? Also, you are positive that you actually do have a root password set, right? You can check your /etc/shadow file for that. Remember that the password you enter when you sudo is your non-root user's password - not root's. I know these are basic things you likely already checked - I'm just making sure.
|
It started happening today.
I'm not using PAM - the machine I'm running slack on is *well-protected*, and is just for screwing around with. I moved everything from /bin to another partition, then realized it was a combination of pointless and not-well-thought-out, so I moved everything back. I'm guessing this marked the beginning of my issues. A root password exists - it's in /etc/shadow, as well as the fact that I need the pw to login to a console. It seems that the only time I can't go to root is with an su. cheers, |
Check the permissions on your su binary. Is it SUID root?
Also, what is the exact error message you get when your password gets rejected? |
Quote:
So I set it, and it now works. btw, the error message in the terminal was "Sorry". As for /var/log/secure: Authentication failed for root I'm somewhat curious as to what went wrong. Thanks for your prompt help, you've saved me much time searching for answers. cheers, |
I'm glad that was it cuz I was running out of ideas. :)
You should check any other binaries that need SUID to make sure they didn't lose it also. Here's the ones on my box (stock Ubuntu) in case it helps: Code:
win32sux@candystore:~$ sudo find / -user root -perm -4000 My guess is the filesystem didn't honor SUID or something like that - not sure. |
All times are GMT -5. The time now is 01:37 AM. |