Advertisement

su: Permission denied

Started by July 12, 2004 11:10 AM
4 comments, last by Fruny 20 years, 3 months ago
Hello. I installed Gentoo. Problem is that I cannot anymore 'su root'.

$ su
Password:
su: Permission denied
Sorry.
I can however login as root otherwise (in nested window or another console), but not su from my regular account. What's the problem?
You need to add your current user to the correct group. I don't remember which one offhand, but it shouldn't be hard to figure out.
Advertisement
I found it for you. Add to the wheel group.

Something like this:

# useradd john -m -G users,wheel,audio,tty -s /bin/bash
# passwd john

You'll be wanting to add users to the audio, sound, video, cdrom groups and such.
Thanks!

usermod used I. It was the 'wheel' group. I thought it is for joystick or steering wheels!
I swear they name these things in such ways just to be able to tell humorous anecdotes years later. Oh well, high-profile physicists do it all the time, too.

~phil
~phil
Quote: Original post by stefu
Thanks!

usermod used I. It was the 'wheel' group. I thought it is for joystick or steering wheels!


Well, the 'wheel' group is the group of users that can su, i.e. the group that holds the steering wheel to the server ;)
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

This topic is closed to new replies.

Advertisement