Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Mar 2004 14:10:25 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Marty Landman <MLandman@face2interface.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Why can't I write this file?
Message-ID:  <20040309141025.GB16123@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <6.0.0.22.0.20040308165050.104aea98@pop.face2interface.com>
References:  <20040308212749.GC894@alex.lan> <20040308214225.GA95503@dan.emsphone.com> <6.0.0.22.0.20040308165050.104aea98@pop.face2interface.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--pvezYHf7grwyp3Bc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Mar 08, 2004 at 04:53:12PM -0500, Marty Landman wrote:
> At 04:42 PM 3/8/2004, Dan Nelson wrote:
>=20
> >What do you get if you run the "id" command?  Try logging out and back
> >in.  Group memberships are checked at login time, so if you were added
> >to the www group recently, your current shell may not know about it.
>=20
> Would rehash fix that or do you have to log back in?

No -- rehash only applies to tcsh(1)'s lookup cache of all of the
executables found on $PATH.
=20
> It's kind of strange but true how you could be logged onto the same accou=
nt=20
> on two different ttys or ssh sessions and have different sets of gids or=
=20
> commands available to you. <just thinking out loud>

Yes, quite.  Your login credentials are established when you login to
the system and only then -- that's when the limits of what you're
authorized to do are set, which includes amongst other things which
groups you're a member of.  So you have to log out and back in again
to pick up any changes to /etc/master.passwd or /etc/group.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--pvezYHf7grwyp3Bc
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFATdBRdtESqEQa7a0RAoSsAKCPyzuwHmhM3izxwShII+EAYPgYyACfVNYq
9c5dJlXQBAvZPue6rA58nt0=
=8RYJ
-----END PGP SIGNATURE-----

--pvezYHf7grwyp3Bc--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040309141025.GB16123>