Date: Fri, 22 Dec 2006 15:10:46 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: lveax <lveax.m@gmail.com> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: I can't see my user name in `pw group show wheel` Message-ID: <458BF576.7010401@infracaninophile.co.uk> In-Reply-To: <576dcbc20612220020n108d5762occ78bd3c5f2abbce@mail.gmail.com> References: <576dcbc20612201323y24905c64u844d56312356af38@mail.gmail.com> <458AC50C.7030206@infracaninophile.co.uk> <576dcbc20612220020n108d5762occ78bd3c5f2abbce@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <m.seaman@infracaninophile.co.uk> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?458BF576.7010401>