Adding a user to a group on Solaris
Add a user to a group by using the usermod command.
Procedure
To add a member to a supplementary group, execute the
usermod
command
and list the supplementary groups that the user is currently a member
of, and the supplementary groups that the user is to become a member
of. For example, if the user is a member of the group
groupa
,
and is to become a member of groupb
also, use the
following command: usermod -G groupa,groupb user-name
,
where user-name is the user name.