LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2005, 11:30 PM   #1
MooMooFarm
LQ Newbie
 
Registered: Jun 2003
Location: New Orleans
Distribution: Fedora Core 5
Posts: 20

Rep: Reputation: 0
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!
 
Old 06-16-2005, 11:50 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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.
 
Old 06-16-2005, 11:55 PM   #3
MooMooFarm
LQ Newbie
 
Registered: Jun 2003
Location: New Orleans
Distribution: Fedora Core 5
Posts: 20

Original Poster
Rep: Reputation: 0
yea I made sure, I even rebooted, and I am sure the password is correct
 
Old 06-16-2005, 11:56 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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
 
Old 06-17-2005, 01:12 AM   #5
MooMooFarm
LQ Newbie
 
Registered: Jun 2003
Location: New Orleans
Distribution: Fedora Core 5
Posts: 20

Original Poster
Rep: Reputation: 0
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

Last edited by MooMooFarm; 06-17-2005 at 01:15 AM.
 
Old 06-17-2005, 01:53 AM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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.
 
Old 06-17-2005, 02:11 AM   #7
MooMooFarm
LQ Newbie
 
Registered: Jun 2003
Location: New Orleans
Distribution: Fedora Core 5
Posts: 20

Original Poster
Rep: Reputation: 0
Awesome that worked, thanks. Another problem solved thanks to LQ!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
emerge --emptytree system problems, gentoo problems!!! alamuru420123 Linux - Distributions 6 10-11-2005 11:48 PM
Went into sleep mode once, can't get gentoo to boot since than thefallen Linux - Laptop and Netbook 5 10-26-2004 12:39 PM
How can I change display mode from character mode to graph mode wuzhong Linux - Hardware 1 08-08-2004 10:36 AM
Gentoo - My CPU Dosnt Support "Long Mode". What Should I do?. happyman Linux - Distributions 1 05-04-2004 07:20 AM
problems whit the x mode CleonII Linux - Distributions 2 06-21-2003 12:59 PM


All times are GMT -5. The time now is 12:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration