Date: Sun, 26 Dec 2010 18:22:36 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Subject: Re: groups and login shells Message-ID: <4D1787EC.9040009@infracaninophile.co.uk> In-Reply-To: <4D17806B.40706@telting.org> References: <4D17806B.40706@telting.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4FC41DEE673C4C25C56B0FEE Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 26/12/2010 17:50, Chris Telting wrote: > Just spent some time figuring this out. >=20 > I needed to create a group and add myself to it. >=20 > But after I added myself to the group while I could "id username" my > username and > get the correct groups if I did a base "id" or "groups" the new group > wouldn't > show up. Not could I access a directory restricted to the group. Turn= s > out I needed > to invoke a new login shell from an existing command prompt or > essentially shut > everything down and relogin a the console. So I just reboot. >=20 > But owning to many years of resentment dealing with Microsoft platform = I > highly > resent reboots. Does anyone know if it's possible to update groups in > memory? You don't need to reboot. All you need to do is login again, and your session will have all the new group memberships. Group membership is only set at the beginning of a session; ie at login, so to see any changes, you need to start a new session. Actually, you seem confused as to the difference between logging out and rebooting. Rebooting is a drastic action on a multi-user server, involving halting and restarting the whole OS and everything running on it. Logging out and back in again is pretty trivial, and only affects your own processes. Very different actions. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig4FC41DEE673C4C25C56B0FEE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0Xh/YACgkQ8Mjk52CukIwb/gCeKWVwhs/AOdKVBEUTVO+9fE9A 1sIAn1ELtDeDGGnZNUuasTyMexD5eAmH =LU21 -----END PGP SIGNATURE----- --------------enig4FC41DEE673C4C25C56B0FEE--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D1787EC.9040009>