How do I remove a user from a group in Linux?

Linux – How to add user to group / remove user from group

You can remove a user from a group from Linux by executing the usermod command without -a option. For example, executing “usermod -G group1 username” will add the user to group1, and will remove it from any other groups where it is. Remember, you can keep users in various groups by listing the groups’ names, separated by a comma.

How to remove user from group in linux

Leave a Comment

Share via
Copy link
Powered by Social Snap