I am studying for the RHCSA and I'm on chapter 3 of the Asghar Ghori book. Anyway, one of the exercises has you add a user to a group. Easy enough, right?
Code:
# usermod -G /path/groupfolder user100
But I noticed that when I ran the groups command with user100, the group that he was a part of before, he was no longer a part of, he was only part of the new group I added him to. I know I can just edit /etc/group and add the info in there, but how do I use this command to not replace his original group he's in but add an additional group to user100?
I hope my question is clear. Let me know if you need further clarification.
Also I've read the man page for usermod, and unless I'm not understanding something, it doesn't really explain this.