How to add a user to a group on Linux

To add an existing Linux user to a group run the following command

sudo usermod -a -G group_name username

To list the user groups run the following command

groups username

 

Share this post