Linux: User Management#

User Creation#

Create user USERNAME with user ID USERID and same group/group ID (GROUPNAME, GROUPID):

1# addgroup --gid GROUPID GROUPNAME
2# adduser -- gid GROUPID --uid USERID  USERNAME

If you want the newly created user to have administrative rights, add the user to the sudo group:

1# usermod -aG sudo USERNAME