LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-21-2004, 04:08 PM   #1
viciousfish
Member
 
Registered: Jun 2002
Location: UK
Distribution: Debian Sarge, Gentoo
Posts: 70

Rep: Reputation: 15
Can't use su, root account fine.


I'm using SuSE 8.2.

I can no longer become root using the 'su' command. I enter my password, and I'm told that it is wrong.

I can log in as root from the standard login prompt just fine, using the same password. I've tried the su command 101 times, and I'm sure that the password is correct.

Is there some way that I could have set a different password for 'su' from the normal root password? Or could it be that my normal user account has somehow lost the ability to use 'su'?

I'm completely baffled by this, I've read every manual I can find...
 
Old 02-21-2004, 04:23 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
no, I guess it's because of groups your user(s) are in. at least that's what caused the same thing on my own linux, when I did some stupid tricks with my groups... hehe..removed one user from all groups.

I think every user that can su to root must be in a certain group, so that those users who log in from a certain place couldn't have rights to this (through ethernet/net or something) due to security reasons. anyway, if I remember correctly, the group is called "wheel" (without quotes).

so try adding your user(s) to the group wheel and see if it helps it did at least for me...

EDIT: use a graphical tool or some "easy-to-use" if you can, but if you can't, here's the way to do it in terminal....(the way I managed to remove my user from all groups, heh..)

usermod -g group1,group2,group3,group4,...

(see "man usermod" -without quotes- for details). this sets the user into the given groups (must be root to do this?), so WATCH OUT: THE USER IS IN THE GIVEN GROUPS, NOWHERE ELSE! it means, the user is in the groups you list - if you list a group in which the user isn't already, the user is added to the group. BUT. if the user has been in a group but you don't list it here, the user is REMOVED from that group....so be sure you add it to all the groups you need.

and wheel is the group (if I remember right) that has access to "su" command....

Last edited by b0uncer; 02-21-2004 at 04:27 PM.
 
Old 02-22-2004, 06:42 AM   #3
viciousfish
Member
 
Registered: Jun 2002
Location: UK
Distribution: Debian Sarge, Gentoo
Posts: 70

Original Poster
Rep: Reputation: 15
Thank you, you pointed me in exactly the right direction, the problem was with the groups configuration.

However, it's not because the normal user isn't in the group 'wheel'. I think it is the group 'trusted' which actually did the trick, though I think I've tried adding the user to all the groups at some stage. It all works now anyway.
 
Old 02-22-2004, 04:04 PM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
ok...then I must have remembered wrong or something. but good you found the right group.. for me it took some time when I tried different groups, because I didn't have a clue which caused the problem...and I also had another group which I needed but didn't know the name :/ well, everything's ok now...
 
  


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
How do I retain the PATH in the root account even when I switch to root using su? thearchitect Linux - Newbie 1 08-13-2005 01:02 AM
Help with root account... thmonkey Linux - Newbie 3 04-05-2005 09:51 PM
More than one root account?? pcdude Mandriva 2 09-17-2004 04:04 AM
Can't startX as user (KDE 3.1)... root is fine Spislander Debian 1 01-01-2004 09:04 PM
X loads fine as root, but not as a general user IanS Linux - Newbie 0 10-05-2003 07:46 AM


All times are GMT -5. The time now is 09:49 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