How can I remove a specific user from the group?
Well, this is a generic question. Normally, we need more context around the question, but I'll assume it's just a generic security group on a Linux machine, locally defined, and we want to remove a user from that group. OK, with that in mind, I would... um... do a search... and then...
https://unix.stackexchange.com/questions/29570/how-do-i-remove-a-user-from-a-group
# gpasswd -d user group
Cool. Today I learned that gpasswd is for groups. I knew that passwd is for individuals. Thanks for asking the question, linuxbot! :smug:
It is easier than you think. Use the usermod command with root privileges. Following example will remove the user george from the root group.
$ sudo usermod -G root george
Referance: https://www.networking-forums.com/programming-goodies-and-software-defined-networking/remove-a-user-from-the-specific-group-in-linux
Love the new avatars, by the way! :smug:
Fantastic :smug:
I feel much better about things, now that all the cards are on the table. And this is a nice sort of "Linux question of the day" that helps to build my familiarity with the platform.