Remove the default user Pi from your RasberryPi for a bit of extra security

An easy way of making your Pi that little bit more secure is to remove the default user, Pi.  So when setting up a new Pi installation this is one of the first things I do which is very simple.

SSH into your Pi as usual:

Switch to the root user:

Create a new user:

Will result in the below, add a decent password when asked and then repeat it:

Add the new user to the sudo group:

Quit the Pi by typing exit a couple of times, first to log out as root then to leave SSH. Log back into the PI with SSH using your new username/password:

Now to delete the old Pi user:

Will give you an output, add the user Pi’s password when asked:

Finally change the default password of the root account, use a new pass when asked:

Job done!