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 |
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 |
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. |
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.
|
Thx Mike, that did the trick ! Im most grateful :)
|
All times are GMT -5. The time now is 03:15 PM. |