Problems with SU mode in Gentoo
Hey, I am kinda a newbie here but I was wondering how to get su working in Gentoo, I have a user set in the wheel group but it wount let me, I checked /etc/groups and /etc/groups- and they both have my user in them but getnoo is giving me a I am not authorized to get to su mode deal, whats the problem? Is there something else I need to config? Thanks!
|
Did you just add the user to the wheel group? If so, you may need to logout and log back in for it to take effect. Otherwise, be sure you're typing in the root pasword correctly when su asks you for it.
|
yea I made sure, I even rebooted, and I am sure the password is correct
|
Then it's something of a toughie -- can you post the exact output when you try to su? Also, make sure that the perms on the su binary are correct. On my Gentoo system they are:
tim@brio tim $ ls -l /bin/su -rws--x--x 1 root root 24756 May 30 04:52 /bin/su |
tux ~ # ls -l /bin/su
-rwxrwxrwx 1 root wheel 24756 Jun 16 01:32 /bin/su jason@tux ~ $ su Password: su: Authentication failure Sorry. jason@tux ~ $ I changed it to 777 just to test, but I also changed it to 711 and still no difference. -thanks |
Aha, you somehow lost the SUID bit. That'll do it (things can't magically juump privilege, you need the SUID bit to allow su to run as root). Try "chmod 4711 /bin/su" and it should work fine.
|
Awesome that worked, thanks. Another problem solved thanks to LQ!
|
All times are GMT -5. The time now is 10:01 AM. |