Add a user to a group 

adduser username groupname

and the user username will be added to the group groupname.

hist 

http://groups.google.com/groups?hl=en&threadm=3A6345FF.95B25889%40paradise.svec.uh.edu&rnum=2&prev=/groups%3Fq%3Dusermod%2Badd%2Bgroup%2Buser%26num%3D50%26hl%3Den%26sa%3DG%26scoring%3Dr

Newsgroups: comp.os.linux.misc
Date: 2001-01-15 00:50:07 PST
> Is there a shell utility to add a user to a group?  I know usmod -G
> almost does the job, but instead of adding the user to a group, it
> modifies the user's group settings.

ok, after a little playing around, I found the following solution which I think is simple enough:

usermod -G `id -Gn user | tr ' ' ,`,group user

Jim H

hist 

> And it has been.  In Debian I just type
>
>         adduser username groupname
>
> and the user username will be added to the group groupname.
>
> Of course, you could also just run vigr.

Doesn't work that way on Redhat. Didn't know about vigr. Just goes too so no matter how long you use something, there is always something new to learn.

Jim H