User Management
Overview
Most attacks will attempt to always log in using root, so what we will do is create a new user and then disable root login. We will only be logging in with your new user. Once logged in, you are able to switch to the root user again, but remote access won't be available.
1. Change Your root Password
After you log into your server, immediately change your password for root:
sudo passwd
Type in your new password twice and it will take effect.
2. Create a New User
sudo adduser notarb
It will then ask you for the following:
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for notarb
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
You can leave the information blank and just enter y
at the end.
3. Give Admin Permissions to New User
Now let's add notarb to the sudo group so they have admin permissions:
sudo usermod -aG sudo notarb
Next, let's set up SSH Access.
Last updated