Get root permissionWhen talking about root (or Super User) permissions, we mean the permissions of an account that includes (but is not limited to) system permissions) modify the system and authorize other users to access system resources.
The root account is used randomly. If the system crashes, the system is completely faulty. This is why the following principle is to use the correct posture of the root account:
First, use the root account to runCompile do command EditIn the/etc/sudoers file, grant the minimum superuser permission to the specified account (for example, supervisor.
The minimum superuser permissions can be included, such as adduser and usermod.
Next, use the supervisor account to log on and useSudo executes user management tasks. At this point, you may find that you fail to execute other tasks that require the superuser permission (for example, deleting a software package.
You are not authorized to run the command.
When you must use the superuser permission, repeat the preceding two steps.The exit command is returned to the account without special limits.
At this point, you need to determine if other periodic tasks require superuser permissions? If necessaryIn/etc/sudoers, grant necessary permissions to the specified account or group, and avoid directly using the root account.
SummaryThis document serves as a simple reference for correctly using the root account in Unix operating systems. Add it to favorites and you can read it at any time!
Address: http://www.linuxprobe.com/root-knowledge.html