Tag: Command

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 […]

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: […]