Please help. I need to know how to create a basic group and later add users to the group. The group name would be callled Hardware and I will add johnsmith and janedoe to the group. Should I concern myself with the group id for whatever reason? I think the command is somthing like groupadd. Do I do somthing like:
# groupadd Hardware
# useradd -G Hardware johnsmith
# useradd -G Hardware janedoe
I'm using Solaris 10 if that helps.
A million thanks I very New2Solaris,
Ok here is what I found on the net:
change a user's group information change a user's primary group membership:
usermod -g Hardware johnsmith
usermod -g Hardware janedoe
I forgot to mention that these are existing accounts (sorry)
In order to change user's supplemental group membership:
usermod -G Hardware johnsmith
usermod -G Hardware janedoe
is the supplemental group simply adding them to another group and not changing there primary group, which by default I think is staff. I would like to keep them in staff and add them to another group, in this case Hardware.