How to list and delete iptables firewall rules
How to list and delete iptables firewall rulesIptables is one of the main firewall management tools used in Linux systems, allowing you to filter network...
Ubuntu typically comes with a single main user who has root (administrative) privileges. In many cases, you’ll want to create a separate user to ensure secure SSH access. In this guide, you'll learn the basic commands (adduser, userdel, passwd) for managing users, as well as how to add a user to the sudo group so they can perform administrative tasks.
To create a new user account, for e.g., named "redfoxcloud", run the following command:
sudo adduser redfoxcloud
You will be prompted to enter a password (the input will be hidden for security). You can skip the additional info fields (Full Name, Phone, etc.) by pressing Enter for each.

To grant this new user the ability to run commands as root, add them to the sudo group:
sudo usermod -aG sudo redfoxcloud
To remove an account, for e.g., "redfoxcloud", run this command:
sudo userdel redfoxcloud
This will delete the user but not their home directory (e.g. /home/redfoxcloud). To remove both the user and their home directory, add the -r flag:
sudo userdel -r redfoxcloud
To change the password of a specific user (e.g. "redfoxcloud) use the following command:
sudo passwd redfoxcloud
passwd
How to list and delete iptables firewall rulesIptables is one of the main firewall management tools used in Linux systems, allowing you to filter network...
How to install LAMP server (Linux, Apache, MySQL, PHP)LAMP ("Linux-Apache-MySQL-PHP") is a popular open-source stack for hosting dynamic websites. Because it is free, highly adaptable,...