Understanding Linux / UNIX root user or superuser and how should I use root on my server?

Q. Can you explain the concept of superuser under Linux / UNIX? How how should I use root on my CentOS Linux server?

ADVERTISEMENTS

A. root is the superuser on a Unix or Linux system. root is the first user created during the process of installing any Linux distro or UNIX like operating system. root has unlimited powers can do anything on system hence the term superuser is used. Please note that Windows NT/2003 server also has Administrator user. It is not an exact analogue of the Unix root superuser account

How should I use root on my server?

It is never good practice for anyone to use root as their normal user account, because simple typographical errors can cause major damage to the system. It is recommended to create a normal user account instead and then use the su command to switch when necessary. Some use the sudo utility instead, which allows a measure of graduated access.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
2 comments… add one
  • asd Jan 21, 2008 @ 5:56

    can i have multiple root users in LINUX?

  • pixine May 15, 2008 @ 14:56

    Can u have multiple administrator in Windows??

    Try having multiple users with superuser previlages in Linux… it should work!

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.