super-user

Contents

Roadmap info from roadmap website

Super User

The Super User, also known as β€œroot user”, represents a user account in Linux with extensive powers, privileges, and capabilities. This user has complete control over the system and can access any data stored on it. This includes the ability to modify system configurations, change other user’s passwords, install software, and perform more administrative tasks in the shell environment.

The usage of super user is critical to operating a Linux system properly and safely as it can potentially cause serious damage. The super user can be accessed through the sudo or su commands.

Specifically, su switches the current user to the root, whereas sudo allows you to run a command as another user, default being root. However, they also have a key difference which is sudo will log the commands and its arguments which can be a handy audit trail.

# This would prompt for root password and switch you to root usermode
$ su -

# To perform a command as superuser (if allowed in sudoers list)
$ sudo <command>

Note that super user privileges should be handled with care due to their potential to disrupt the system’s functionality. Mistaken changes to key system files or unauthorized access can lead to severe issues.

#ready #online #reviewed #linux #operative-system #security