LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems with SU mode in Gentoo (https://www.linuxquestions.org/questions/linux-newbie-8/problems-with-su-mode-in-gentoo-334424/)

MooMooFarm 06-16-2005 10:30 PM

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!

btmiller 06-16-2005 10:50 PM

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.

MooMooFarm 06-16-2005 10:55 PM

yea I made sure, I even rebooted, and I am sure the password is correct

btmiller 06-16-2005 10:56 PM

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

MooMooFarm 06-17-2005 12:12 AM

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

btmiller 06-17-2005 12:53 AM

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.

MooMooFarm 06-17-2005 01:11 AM

Awesome that worked, thanks. Another problem solved thanks to LQ!


All times are GMT -5. The time now is 10:01 AM.