Skip to content

Step 5 — Create Your Own Account

Why it matters: root can do anything instantly and without confirmation, including destroying the system with a typo. A normal account has to ask for administrator powers with sudo, which gives you a half-second to notice you are about to do something serious.

Every experienced person works this way.

Replace yourname with the username you want — lowercase, no spaces:

Terminal window
adduser yourname
usermod -aG sudo yourname

Set a real password and save it in your password manager. You will not use it to log in, but you will need it when you run sudo.

Terminal window
mkdir -p /home/yourname/.ssh
cp /root/.ssh/authorized_keys /home/yourname/.ssh/
chown -R yourname:yourname /home/yourname/.ssh
chmod 700 /home/yourname/.ssh
chmod 600 /home/yourname/.ssh/authorized_keys

Now test it — this is the step that prevents disaster

Section titled “Now test it — this is the step that prevents disaster”

Lock the Front Door