Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
su: permission denied
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
lightweave
n00b
n00b


Joined: 18 Feb 2005
Posts: 26

PostPosted: Fri Mar 25, 2005 7:12 pm    Post subject: su: permission denied Reply with quote

I have a problem with su.

When I'm root and su to some user it works fine. But when I login as a user and then try "su -" to become root there is always a delay and then I get a "permission denied".

Any ideas what's wrong?

I had this on my old box, and I accidently run a chmod as root there :oops: so I had to restore the permissions. But this machine is brandnew setup and it also has this problem. Previously I thought this is something with the permissions, but since this is a clean install from stage1 and it still persists, I was wondering about that.
Back to top
View user's profile Send private message
ryker
Guru
Guru


Joined: 28 May 2003
Posts: 412
Location: Portage, IN

PostPosted: Fri Mar 25, 2005 7:15 pm    Post subject: Reply with quote

add the regular user to the wheel group.
_________________
Athlon 64 3200+, 80G WD sata hd + 200G IDE, 1G Geil DDR400, MSI K8T Neo
IntelCore2Duo 2.0Ghz MSI laptop,100G SATA hd, 2G RAM
Back to top
View user's profile Send private message
lightweave
n00b
n00b


Joined: 18 Feb 2005
Posts: 26

PostPosted: Sat Mar 26, 2005 10:00 am    Post subject: Reply with quote

Which regular user do you mean? And why wheel group??? The problem is that su in general doesn't work, only for root. So adding one user to some group doesn't really help. And I don't understand what the wheel group is doing.


Edit: Thanks. I just found it in the FAQ. Never thought that something like this is in the FAQ, because I was assuming that I did something wrong somehow with permissions. I guess it is ok, because I usually only use my user to su to root, and all the other users are not allowed to anyway. :)

Still, what is the purpose of the wheel group and why does it not work for others? Just being curious.
Back to top
View user's profile Send private message
c4
Guru
Guru


Joined: 21 Feb 2004
Posts: 312
Location: Sweden

PostPosted: Sat Mar 26, 2005 12:15 pm    Post subject: Reply with quote

lightweave wrote:
Still, what is the purpose of the wheel group and why does it not work for others? Just being curious.


As you know, the wheel group may allow you to change users. For exampel you will want your user to be in the wheel group, but if you have other user accounts on your box, you probably don't want them in the wheel group. Users should not have any more priviledges than is absolutely necessary. Being able to change users is an important feature for example when disallowing root to login via ssh, you can allow you user to login and than use su, to become root.
_________________
AMD64 Gentoo Hardened server
AMD64 Xubuntu Desktop
X86 Dreamlinux Vaio laptop
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Sat Mar 26, 2005 3:11 pm    Post subject: Reply with quote

lightweave wrote:
I just found it in the FAQ.


Moved to Duplicate Threads. ( https://forums.gentoo.org/viewtopic-t-23378.html )
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