Q. Can you explain the concept of superuser under Linux / UNIX? How how should I use root on my CentOS Linux server?
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 Linux, Open Source & DevOps via:
|Category||List of Unix and Linux commands|
|Firewall||Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04|
|Network Utilities||dig • host • ip • nmap|
|OpenVPN||CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04|
|Package Manager||apk • apt|
|Processes Management||bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time|
|Searching||grep • whereis • which|
|User Information||groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w|
|WireGuard VPN||Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04|