David Craig
PHP/Web Developer

Create a user and add them to a group (Ubuntu / Linux)

Create the user

adduser {username}

Alternatively you can do:

useradd {username}

Set the users password

passwd {username}

Create a home directory for the user (adduser should create this but if not)

cd /home && mkdir {username} && chown {username} {username}

(Optional) List available groups


Add user to a group (Most likely will need to use sudo)

usermod -a -G {groupname} {username}