Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
su doesn't work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
ennservogt
n00b
n00b


Joined: 27 May 2004
Posts: 32

PostPosted: Sun Apr 24, 2005 2:54 pm    Post subject: su doesn't work Reply with quote

Hello,
I used the root account to setup my system and my desktop environment (yes, i know that this is silly). Yesterday I copied the home dirrectory of the superuser "root" into the home directory of the user "christoph". Then I changed the permissions of the copied files. Well, my problem is that when I issue the "su" command when logged in as "christoph" to become a superuser to do some administrative tasks, no matter if I do this on the console or under the X window system using a terminal emulator like xterm, I can't become "root". su says that the password supplied is wrong. The strange thing is, that I can login to the root account on the console without any problems.

I have absolutely no clue what is wrong.

Code:

sh-2.05b$ su   
Password:
su: Permission denied
Sorry.
sh-2.05b$


/var/log/messages says:
Code:

su[9469] pam_authenticate: permission denied



Thanks in advance,
ennservogt
Back to top
View user's profile Send private message
Crenshaw
Guru
Guru


Joined: 23 Jun 2004
Posts: 474
Location: Poland

PostPosted: Sun Apr 24, 2005 3:01 pm    Post subject: Reply with quote

Is user that you use to "su" in wheel group?
Back to top
View user's profile Send private message
ravensix
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 220

PostPosted: Sun Apr 24, 2005 3:01 pm    Post subject: Reply with quote

It sounds to me like that user isn't in the wheel group, what does
Code:
 more /etc/group |grep wheel
return? if your user isn't in there you can add it by doing
Code:
gpasswd -M christoph wheel


I believe you have to add the other groups along with wheel, but im not sure.
_________________
Gentoo Powered:Reiser4|2.6 bootstrapped|NPTL|UDEV|2.6.11-nitro2+gnome
Linux registered user #366983
ravensix[at]gmail[dot]com
Back to top
View user's profile Send private message
jdgill0
Veteran
Veteran


Joined: 25 Mar 2003
Posts: 1366
Location: Lexington, Ky -- USA

PostPosted: Sun Apr 24, 2005 3:06 pm    Post subject: Reply with quote

See this Gentoo faq.
_________________
Vim has excellent syntax highlighting for configuration files: emerge gentoo-syntax
Learn how to use Vim: vimtutor
Back to top
View user's profile Send private message
ennservogt
n00b
n00b


Joined: 27 May 2004
Posts: 32

PostPosted: Sun Apr 24, 2005 3:14 pm    Post subject: solved Reply with quote

Thank you very much guys!
I have searched for a solution in the internet and in this forum, but I didn't find a hint. Maybe I have just searched for the wrong terms.
The user christoph was not in the wheel group and thus was not allowed to su.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sun Apr 24, 2005 3:17 pm    Post subject: Reply with quote

jdgill0 wrote:
See this Gentoo faq.

Moving to dups.

@ennservogt: searching for terms with less than three characters (like su) is not possible.
_________________
KDE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum