Adding Users To A Usergroup
Updated 27 Nov 2026 · 51,420 views
Using the following two commands will allow you to add either a new user or an existing user to correct permissions issues that you may encounter in a Linux OS.
Adding A New User To A UsergroupLog into your Linux server via SSH / Shell.
Since we are going to be adding a new user to an existing group, you can do this by typing one command instead of first creating the user and then adding it to the usergroup. To add the new user, type the following;
"useradd -G user group"
Adding An Existing User To A UsergroupSince the user already exists you will now need to use the "usermod" command. Any attempt to add an existing user will result in an error using the "useradd" command.
To add the user to the usergroup, type the following;
"usermod -a -G user group"
Thank you. % of readers found this helpful.
Related
Still stuck?
Open a ticket