bug-sh-utils
[Top][All Lists]
Advanced

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

Re: usermod -G does not take effect immediately


From: Bob Proulx
Subject: Re: usermod -G does not take effect immediately
Date: Wed, 29 Oct 2003 11:53:20 -0700
User-agent: Mutt/1.3.28i

address@hidden wrote:
>   used 'usermod -G users,demo3 garg' to
> add user 'garg' to the users and demo3 groups.

Just curious, but what directed your 'usermod' question to shellutils?
'usermod' are other folks.  But I can answer your question anyway.

>  Then, when I do 'groups' as user 'garg', I get
> only 'users'.
> 
>  If I do 'groups garg' as user 'garg', then I get
> 'users demo3'.
> 
>  Can someone tell me what I'm doing wrong? This is
> causing a problem as user 'garg' is not being able
> to access some files properly. Is this some sort of
> a caching problem?

'usermod' and others set up the /etc/passwd and other files.  They
don't actually change anything in process space.  Those files only
have effects when you log in.  So to make those other groups take
effect you need to log in.  Usually that would mean that you need to
log out first and then log back in.

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]