LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   su root authentication failure (https://www.linuxquestions.org/questions/linux-software-2/su-root-authentication-failure-298005/)

exodist 03-05-2005 12:31 PM

su root authentication failure
 
as a user added to the wheel group in gentoo linux I try 'su root' it asks me for a password I enter the correct password (I can doa root login fine, su is only problem) it gives me the error:

su: Authentication failue
sorry


the user in question has been added to the wheel group

harken 03-05-2005 12:41 PM

I had a similar problem, the difference being that I tried to assign the /bin/su file to the group wheel after creating the group.
Check and see if /bin/su has the suid bit set.
Hope this will solve your problem.

exodist 03-05-2005 12:54 PM

thanx, chmod +s /bin/su fixed it.

fclock 04-02-2005 09:43 PM

Apparently `su' didn't have setuid bit set.

Run as root:

chmod +s /bin/su

and su should work better.

cdoebbler 03-26-2009 08:08 AM

authentication failure for su
 
When I run su I get an error message "authentication failure". I then run
"chmod +s /bin/su" and I get an error message saying that

chmod: changing permissions of 'bin/su': Operation not permitted

Apparently su like most of my files are locked because of the system crash that I am trying to repair. Any suggestions how to unlock or find password for su?

raedbenz 04-04-2009 04:47 PM

Quote:

Originally Posted by cdoebbler (Post 3488377)
When I run su I get an error message "authentication failure". I then run
"chmod +s /bin/su" and I get an error message saying that

chmod: changing permissions of 'bin/su': Operation not permitted

Apparently su like most of my files are locked because of the system crash that I am trying to repair. Any suggestions how to unlock or find password for su?

have u tried to "sudo -i" first, then enter "chmod +s /bin/su"

triva911 08-03-2010 09:20 PM

Quote:

Originally Posted by raedbenz (Post 3498588)
have u tried to "sudo -i" first, then enter "chmod +s /bin/su"

Thanks Man Very Much .... sudo -i command save my day ......thanks again...

lvcosme 08-05-2011 05:03 PM

Quote:

Originally Posted by cdoebbler (Post 3488377)
When I run su I get an error message "authentication failure". I then run
"chmod +s /bin/su" and I get an error message saying that

chmod: changing permissions of 'bin/su': Operation not permitted

Apparently su like most of my files are locked because of the system crash that I am trying to repair. Any suggestions how to unlock or find password for su?

I have the same problem, but then when I run sudo -i I get "sudo: must be setuid root". How can I go around it. I can't get too the root to change sudo ^^

exodist 08-05-2011 08:24 PM

you have to login as root and set chmod +s /bin/su and /bin/sudo

lvcosme 08-06-2011 02:31 PM

Hey thanks. I wish I could log as root, but I can't. I even tried this http://www.psychocats.net/ubuntu/fixsudo but did not work. I will backup and reinstall. If I try sudo -i, then I get "sudo: must be setuid root", if I run su, then I get "su: Authentication failue". I logged in the repair mode (as root) and run chmod +s /bin/su, did not work either. Somehow I messed up sudoers/sudo badly.


All times are GMT -5. The time now is 04:33 AM.