Friday, October 23, 2020

What is a Linux root user?

What is the Linux root user?

root user = administrator

The "root" user has "administrator privileges" on Linux and Unix Like Systems.

It has the same meaning as an administrator in Windows.

For security reasons, it is the most important user to protect, and the password must not be known to anyone other than the administrator. If this leaks, it's a one-shot out. You should give up the Linux and reinstall it linux admin roles and responsibilities.

Think of it as such an important user authority.

root is the only god on Unix Like System

In short, root is the "only god" on Unix Like System.

Basically, in Linux, "root instructions are absolute". You can change other users' passwords, rewrite system file permissions, or rewrite Log yourself.

You can also delete the "/" directory yourself. It is a very dangerous authority to handle easily.

Do not log in as root

After installation, for the time being, create one general user for everyday use. As we will see later, let's borrow root privileges only when necessary.

As I mentioned earlier, root can also delete the entire system if he wants to. This is because even if nothing is intentional, system files may be deleted by mistake.

A major accident occurs when a wild card such as "*" is specified after the "rm" command and the enter is pressed by mistake.

If you execute this with root privileges, the files inside the directory will be deleted without any questions other than the hidden files with dots at the beginning such as Q ".hoge".

If you're the only operator, you may be the only one in trouble, but it's easy to imagine a catastrophe if you're logged in to a server shared with others.

Be aware that you basically use general users to prevent accidents. If you enumerate when root privileges are required

No comments:

Post a Comment

Run Your Applications Locally, Over Your Organization's Network, or Anywhere in the World

Applications are easy to use and with COMSOL Server™, they are easy to access, deploy, and share, too. You can install the COMSOL Server™ so...