Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Feb 1996 09:54:03 -0500
From:      "Garrett A. Wollman" <wollman@lcs.mit.edu>
To:        "Miguel A.L. Paraz" <map@iphil.net>
Cc:        freebsd-questions@freebsd.org
Subject:   How to 'su'
Message-ID:  <9602091454.AA03663@halloran-eldar.lcs.mit.edu>
In-Reply-To: <199602090816.QAA24594@marikit.iphil.net>
References:  <199602090816.QAA24594@marikit.iphil.net>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Fri, 9 Feb 1996 16:16:43 +0800 (GMT+0800), "Miguel A.L. Paraz" <map@iphil.net> said:

> Hello!
> How do you su to root?  Even if the user's GID is changed to 0
> with vipw, su still says:

> su: you are not in the correct group to su root.

The user's primary GID should never be 0.  Rather, the user should be
added to the membership of group 0 in /etc/group.  The `su' command
only looks at the group membership list, not the user's group list.

-GAWollman

--
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@lcs.mit.edu  | Shashish is the bonding of hearts in spite of distance.
Opinions not those of| It is a bond more powerful than absence.  We like people
MIT, LCS, ANA, or NSA| who like Shashish.  - Claude McKenzie + Florent Vollant



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9602091454.AA03663>