Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Feb 1996 00:27:27 -0800 (PST)
From:      Donald Burr <d_burr@ix.netcom.com>
To:        "Miguel A.L. Paraz" <map@iphil.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to 'su'
Message-ID:  <Pine.BSF.3.91.960209002646.3402A-100000@starfleet.gov>
In-Reply-To: <199602090816.QAA24594@marikit.iphil.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 9 Feb 1996, Miguel A.L. Paraz wrote:

> 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.

You have to edit /etc/group and add you login name to the "wheel" group.  
Example:

wheel:*:0:root,newsadm,d_burr
               ^^^^^^^^^^^^^^

It doesn't matter what your GID is set in /etc/passwd, you just have to 
be listed in the 'wheel' group in order to be able to su.

Donald Burr [d_burr@ix.netcom.com], PO Box 91212, Santa Barbara CA 93190-1212
TEL (805)564-1871 / FAX 564-2315 / WWW http://www.geopages.com/WallStreet/2072
PGP Public Key available by request (send e-mail) or on Public Key Servers.
** Uphold your right to privacy - Use PGP. **




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