LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cannot su to root. (https://www.linuxquestions.org/questions/linux-software-2/cannot-su-to-root-104761/)

ninen 10-16-2003 12:33 PM

Cannot su to root.
 
I have a strange problem, recently i havn't been able to su to root. I can login as root from console so the password is right. I have tried switching permissions on shadow and passwd without luck. And honestly i have no clue what to do next. Anyone have an idea?

####

Password:
su: Permission denied
Sorry.

####


/thx for any advice

coolamit78 10-16-2003 12:49 PM

Well....Cant tell u the exact solution...but I can suggest u some....

log in from console as root and check the permissions for 'su' command using 'ls -l /bin/su'

It may be the case that somehow, the execute permission has been taken off.....If that is the case you should see something in the first column....

rw-r-xr-x

The default permissions should however be:

rwsr-xr-x (where 's' refers to SUID permission).....

If thats not the case, give all users the execute permission for the /bin/su command .....

chmod u+s /bin/su

I hope that helps...

Regards,

amit

ninen 10-16-2003 01:32 PM

That doesn't seem to be the problem either. I get this output when i run ls -l /bin/su

-rwsr-xr-x 1 root root 24304 Sep 2 02:16 /bin/su

Same as you mentioned above.

Rumblefish 10-16-2003 02:24 PM

Check to see that you weren't somehow removed from the 'wheel' group. Membership to this group is required for anyone who wishes to be able to su to root.

ninen 10-16-2003 03:36 PM

Thx Mike, that did the trick ! Im most grateful :)


All times are GMT -5. The time now is 03:15 PM.