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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On 26/12/2010 17:50, Chris Telting wrote:
> Just spent some time figuring this out.
>
> I needed to create a group and add myself to it.
>
> 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. Turns
> 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.
>
> 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
--
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
[-- Attachment #2 --]
-----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-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D1787EC.9040009>
