From owner-freebsd-questions@FreeBSD.ORG Sun Dec 26 18:22:51 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB2C01065670 for ; Sun, 26 Dec 2010 18:22:51 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 278388FC0A for ; Sun, 26 Dec 2010 18:22:50 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id oBQIMkV4057648 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sun, 26 Dec 2010 18:22:46 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk oBQIMkV4057648 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1293387766; bh=TPSn9KWkxI95j38fidNykEViHJUiTx4hjROqZWmu9RI=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4D1787EC.9040009@infracaninophile.co.uk>|Date:=20S un,=2026=20Dec=202010=2018:22:36=20+0000|From:=20Matthew=20Seaman= 20|User-Agent:=20Mozilla/5.0=20(M acintosh=3B=20U=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20en-US=3B=20r v:1.9.2.13)=20Gecko/20101207=20Thunderbird/3.1.7|MIME-Version:=201 .0|To:=20freebsd-questions@freebsd.org|Subject:=20Re:=20groups=20a nd=20login=20shells|References:=20<4D17806B.40706@telting.org>|In- Reply-To:=20<4D17806B.40706@telting.org>|X-Enigmail-Version:=201.1 .1|OpenPGP:=20id=3D60AE908C|Content-Type:=20multipart/signed=3B=20 micalg=3Dpgp-sha1=3B=0D=0A=20protocol=3D"application/pgp-signature "=3B=0D=0A=20boundary=3D"------------enig4FC41DEE673C4C25C56B0FEE" ; b=mKd1PHbCeTpIJXiQJQV+Nqfadv1ANZXzkWX2s43uQwAMEyYfRIA6tj5Gj4H0rG+yL Mz/kiGdpU4eOVEaQMzpqvavenQC2pv1/FYhXeBaj9taEg5jX8eAvHRLWgvO1KzJotp 5YmFfBsNsSzfMHsfnrutn2iBxjjhp8opznkNTATw= Message-ID: <4D1787EC.9040009@infracaninophile.co.uk> Date: Sun, 26 Dec 2010 18:22:36 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4D17806B.40706@telting.org> In-Reply-To: <4D17806B.40706@telting.org> X-Enigmail-Version: 1.1.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4FC41DEE673C4C25C56B0FEE" X-Virus-Scanned: clamav-milter 0.96.5 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk Subject: Re: groups and login shells 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: Sun, 26 Dec 2010 18:22:52 -0000 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--