• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Add Existing User To A Group

December 3, 2020

Here’s how to add an existing user to a user group in Linux.

usermod -a -G groupname username
usermod -a -G www-data john

usermod -a -G groupname username usermod -a -G www-data john

List all users belonging to a group.

lid -g www-data

lid -g www-data

List all the groups the user belongs to.

groups john

groups john

Filed Under: Linux Tagged With: add, existing, group, user

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023