3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 581
/ 2 Years ago, sat, april 30, 2022, 9:14:44
Uhy can you add a user to a group with usermod
, but you cant remove a user from a group with usermod
? Am I wrong?
I got a user I want to remove from the sudo
group. I put this user in with usermod
, now I have to use deluser
to remove the user from the group?
On a test box, I ran sudo usermod -G "" user
(bad advice form some thread I read) which removed all the groups, glad I didn't run that on the server.
From the man page, I see a -W
option that mentions removing a list of gids
. Are gids
groups?
More From » command-line