Linux command: usermod

This is a guide I’m mainly written a personal how-to guide, but I hope it can help others.

System Ubuntu Server
Version 16.04
Official manual Page usermod

This is a fairly generic Linux-based command so it work across different Ubuntu editions and versions.

To add an existing account called ‘account1’ into the ‘group1’ group:

sudo usermod -a -G group1 account1

Variables:

-a add user to the group, works with ‘-G’
-G add user to that additional group as needed

 

About the Author

1 thought on “Linux command: usermod

Comments are closed.

%d bloggers like this: