User Management


This section describes the steps necessary to add a standard user to the system, i.e. one that has shell access and that can potential perform super user actions via the sudo command.

NOTE: If you are looking to create a user specifically tied to a website that has more restricted access then please take a look at the Website Users page.

Create a new user

Use the useradd wizard to create a new user substituting the appropriate username.

sudo useradd username

Make them a Sudoer

To enable this user to have sudo privileges then you'll need to add an entry into the sudoer's configuration file. The easiest was to do this is by using the visudo command to edit the configuration file.

sudo visudo

Add a line at the end of the file for our new user:

username  ALL=(ALL) ALL

SSH User Access

To enable SSH access we need to add them as an allowed user to the /etc/ssh/sshd_config file. Open this file and look for the line starting AllowUsers. Append the new username to this line and restart the OpenSSH for the change to take effect:

sudo /etc/init.d/ssh restart
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License