How to remove a user from a group in Linux

Use the gpasswd command. The gpasswd command is used to administer /etc/group, and /etc/gshadow.

Use to following command:

sudo gpasswd -d user group

Replace user with the user you wish to remove and group with the group. The -doption is to remove the user from the named group.

Image Credits: Photo by Isis França on Unsplash.

More Similar Posts

No results found.