From owner-freebsd-questions@FreeBSD.ORG Fri Dec 22 15:11:28 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7783116A494 for ; Fri, 22 Dec 2006 15:11:28 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id E5A7213C466 for ; Fri, 22 Dec 2006 15:11:23 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [172.16.3.238] (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.13.8/8.13.8) with ESMTP id kBMFAptU003529 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 22 Dec 2006 15:11:03 GMT (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <458BF576.7010401@infracaninophile.co.uk> Date: Fri, 22 Dec 2006 15:10:46 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.8 (X11/20061218) MIME-Version: 1.0 To: lveax References: <576dcbc20612201323y24905c64u844d56312356af38@mail.gmail.com> <458AC50C.7030206@infracaninophile.co.uk> <576dcbc20612220020n108d5762occ78bd3c5f2abbce@mail.gmail.com> In-Reply-To: <576dcbc20612220020n108d5762occ78bd3c5f2abbce@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enigCD6CA2CBAE74C796AE7F232E" X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [81.187.76.162]); Fri, 22 Dec 2006 15:11:18 +0000 (GMT) X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, DKIM_POLICY_TESTING autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions Subject: Re: I can't see my user name in `pw group show wheel` X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Dec 2006 15:11:28 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCD6CA2CBAE74C796AE7F232E Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable lveax wrote: > On 12/22/06, Matthew Seaman wrote: >> The primary group is defined in /etc/master.passwd -- the gid >> number is put into the third field. Eg: consider the standard >> system user bin: >> >> happy-idiot-talk:~:% id bin >> uid=3D3(bin) gid=3D7(bin) groups=3D7(bin) >> happy-idiot-talk:~:% pw group show bin >> bin:*:7: >> happy-idiot-talk:~:% pw user show bin >> bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin >> ^ >> ^ >> >> No UIDs are listed as members of group bin in /etc/group, but the >> bin user has bin as their primary group deom the password file. > thank you >=20 > but i find an exception? >=20 > $ id root > uid=3D0(root) gid=3D0(wheel) groups=3D0(wheel), 5(operator) >=20 > root's primary group is wheel and root is in the list? Yeah. The root account is special in many ways, and what you point out is just one visible manifestation of that. However I suspect this is of no deeper significance than historical inertia -- something that's been in BSD password and group files since the epoch or thereabouts. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. Flat 3 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW, UK --------------enigCD6CA2CBAE74C796AE7F232E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFi/V73jDkPpsZ+VYRAzT7AJ9NP4mJ/HPWv8oR8O9/vBOMkSGtowCfWlE7 uUdaVsGbfnvoVVooTbaZB/A= =MkNN -----END PGP SIGNATURE----- --------------enigCD6CA2CBAE74C796AE7F232E--