[EMAIL PROTECTED] 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


_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils

Reply via email to