Tag: User

How to disable root access — Ubuntu

To add another layer of security on your Ubuntu server, we have to disable root access to avoid your server exposed to a brute force attack. Before doing this, first you should have a sudo user account. Disabling the root access: sudo nano /etc/ssh/sshd_config Change PermitRootLogin from yes to no: PermitRootLogin no Now save the […]

Create a sudo user — Ubuntu

To have an administrator privileges, you have to add the user to sudo group. Log in to your Ubuntu server using your root account or a sudo user if you already have. While on the terminal type this command: adduser your_username or sudo adduser your_username Assign a password. Enter it twice. Now that you have […]

User Group Management — Ubuntu

Show All User cut -d: -f1 /etc/passwd Add User To add username kyle, enter the following: sudo adduser kyle or sudo useradd kyle To add the user home directory automatically, please use -m option, this will creates a home directory sudo useradd -m kyle Giving Sudo permission usermod -aG sudo kyle To remove/delete a user: […]