On Mon, Mar 08, 2004 at 04:53:12PM -0500, Marty Landman wrote: > At 04:42 PM 3/8/2004, Dan Nelson wrote: > > >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. > > 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.
> It's kind of strange but true how you could be logged onto the same account
> on two different ttys or ssh sessions and have different sets of gids or
> 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
--
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
pgp00000.pgp
Description: PGP signature
