$ xyruscodev7

Blog

Setting Up a Superuser on Ubuntu: A Quick Guide

Managing a system on Ubuntu often requires superuser privileges.

·3 min read
LinuxUbuntuTutorial

Managing a system on Ubuntu often requires superuser privileges. If you're tired of googling "how to set up a superuser on Ubuntu" every time like me, here's a simple, step-by-step guide.

What is a Superuser?

A superuser, often referred to as "root," is a user account with unrestricted access to all system files and commands.

Step 1: Access Your Terminal

Open the terminal using Ctrl + Alt + T or searching for "Terminal" in the application menu.

Step 2: Switch to Root

sudo -i

Step 3: Create a New Superuser

# Add a new user
sudo adduser username

# Grant sudo privileges
sudo usermod -aG sudo username

# Test the new superuser
su - username

Conclusion

Setting up a superuser on Ubuntu is straightforward. Just remember to use root privileges responsibly.

Comments