If you are adding a user to a secondary group, use the flag -G
# useradd -d /home/users -g users -G g09 user1
If you are modifying a user from a secondary group, use the flag -G
# usermod -G g09 user1
Linux Toolkits Blog is a scratch-pad of tips and findings on Linux
# useradd -d /home/users -g users -G g09 user1
# usermod -G g09 user1
No comments:
Post a Comment