[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] su not working



On Wed, 11 Apr 2001, Jan Ploski wrote:

> Hello,
> 
> Sorry if this question has already been asked (and answered) in the past,
> but I did not find any archive for this list (is there one?)
> 

Yes there is an archive.

I think the URL is http://list.cobalt.com/mailman/listinfo/cobalt-users

> I need to switch to root from an ordinary user, which I created with
> useradd. Su just responds with "Invalid password". Interestingly,
> I can su to root if I log in as admin, and I can su to admin from
> my user account. However, if I do su to admin without logging in
> as such, I cannot su to root (same "Invalid password" message).
> 
><snip>
> 
> Any ideas what the problem might be?
>

Yes.  There is a security measure in Cobalt, that only users who are in a
specific group named "wheel" can su to root.

You'll need to add that user to the "wheel" group.

Edit /etc/group

By default, it'll contain the line:

wheel:x:10:root,admin

Say you want to add a user called johndoe, just add it with a comma before
it, like this:

wheel:x:10:root,admin,johndoe

 
> Thanks in advance -
> JPL
> 
NP.

- shimi.