gabriel rosenkoetter on Mon, 7 Jan 2002 23:30:20 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] simple linux admin question (i hope)


On Mon, Jan 07, 2002 at 04:32:29PM -0500, Keith Bentrup wrote:
> As myusername, I type
> 
> groups
> 
> and get only myusername.

This is in a shell that existed previous to the edit of /etc/groups,
is it not?

> Why does it do this?  How is sudo -u different from being myself?

It starts a new process. Shells only read /etc/group at startup.
Some *may* grab that information if you tell them to rehash, but
usually that only updates (some) environment information.

-- 
gabriel rosenkoetter
gr@eclipsed.net

Attachment: pgpjoJMRXK4qs.pgp
Description: PGP signature