su authentication failure without password prompt
Hi,
I have a strange behaviour on a Slackware 13.1 box: Code:
user@host$ su When I 'strace su' there is a password prompt, but using su over strace results in an authentication failure anyway. Using su as root works fine: Code:
root@host# su user I am a little lost at where to start. Any ideas would be greatly appreciated. Regards, fbmd |
Please confirm setuid bit is set for the command su.
|
Quote:
Code:
root@host# ls -l /bin/su |
What about /etc/login.defs and related files? Any changes made to them?
Another thought - check aliases - I messed things sometimes there :). |
Another place to have a look at could be /etc/pam.d/su whether there is anything used like pam_wheel.so while the user in question not being a member of group wheel. In your first example you are trying to gain root access - is an su for a normal user working in case he wants just to switch to another ordinary user?
|
Quote:
Code:
CHFN_AUTH yes Quote:
Quote:
I have just tried the following: I added the user to the "wheel" group. Then I changed ownership of /bin/su to root.wheel. That obviously removed the SUID bit: Code:
$ ls -l /bin/su Code:
user@host$ su I'd still be grateful for any other hints. fbmd |
Was there ever any resolution to this issue?
Cause I'm having the same problem and I haven't quite figured it out myself either.
|
Guess this is all that we can do here. What I think we should do next is boot up with a live medium and then edit the /etc/passwd and /etc/shadow and see if that helps. This is the only thing I can think of now really.
If you need any more info please post back. BTW sorry for the delay I was out for a long long time and did not have access to the internet. Hope this helps. |
Hmmm, unfortunately I am on a VPS and cannot perform that step :-( I'm actually trying to update (or downgrade) my udev libraries to see if its something related to that as it was hinted at in an Ubuntu post I have lost at the moment. If you can think of anything else please let me know!
|
Are you using PAM? As there is the option to block users without a password, and you would get exactly the mentioned behavior of the first post:
Code:
auth required pam_unix2.so nullok |
I am not using PAM. I'm trying to su to a user with a password (ie my root account). I know it has a password because I can login with it.
|
Set root password first
You probably have not set your root password yet.
Set your password by: sudo passwd Then, you won't have that problem again. |
Sir_MBA. Please read the thread above.
|
I know, the thing that I mean is not your login password.
You just try 'sudo passwd', and set a password, and then 'su' again. |
Quote:
|
All times are GMT -5. The time now is 02:03 AM. |