Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 1998 10:38:53 +0300 (EEST)
From:      "Oleg G." <olegg@astra.gal.ukrpack.net>
To:        Questions <questions@FreeBSD.ORG>, Zip311 <root@cc1003523-a.twsn1.md.home.com>
Subject:   Re: I can't su!!
Message-ID:  <Pine.BSF.3.96.980527103044.1965A-100000@astra.gal.ukrpack.net>
In-Reply-To: <356B1AC6.A9A451C2@cc1003523-a.twsn1.md.home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 26 May 1998, Zip311 wrote:

> When I try to "su" to root it gives me the message:
> "su: you are not in the correct group to su root."
> But my /etc/passwd and /etc/master.passwd entries both state me as being
> in group wheel.

Check GID, it must be 0, like this:

root:*:0:0:Charlie &:/root:/usr/local/bin/tcsh
toor:*:0:0:Bourne-again Superuser:/root:
...
some lines are deleted...
...
olegg:*:1060:0:Oleg G., Info-Center:/home/olegg:/usr/local/bin/tcsh
...         ^^^

Use vipw command, to correctly rebuilt database /etc/master.passwd 

> Am I doing some thing wrong?
> How can I fix this?

Check the GID in /etc/master.passwd

> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

Regardz, Oleg G.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980527103044.1965A-100000>