Creating a new user

First, we must create a new user. While still logged in as root, run adduser <username>, replacing <username> with your username (we will use hobnob as the username going forward). This will initiate a wizard that asks you for details about the user, and for you to enter a password. After this, a new user with the username hobnob will be created, with their own home directory located at /home/hobnob:

root@hobnob:# adduser hobnobAdding user `hobnob' ...Adding new group `hobnob' (1000) ...Adding new user `hobnob' (1000) with group `hobnob' ...Creating home directory `/home/hobnob' ...Copying files from `/etc/skel' ...Enter new UNIX password: <your-password>Retype new UNIX password: <your-password>passwd: password updated ...

Get Building Enterprise JavaScript Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.