How to remove a user from a group in Linux

No Comments

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.

Related Articles

No results found.

Leave a Reply

Notify of