Why should I switch to the root user?
The root user is the most privileged user of the Linux system, and the user has the power to kill the system. However, because this user right is too large, the system generally does not allow you to log on to the system as a root user. However, after logging into the system with ordinary users, the power of ordinary users is limited, do not do some basic operations, such as installing the application, so it is necessary to switch to the root user to perform some of the system has a significant impact on the operation.
How do I switch?
You can switch from a normal user to a root user by using the following command:
Su Root
After entering enter, you are prompted for the password (this is the password for the user you are using.) I am not sure whether all users can switch to the root user at this point . After the validation passes, the switchover is complete. Next you will be able to perform a major operation in the identity of root. Must be careful, a lot of operations are irreversible, messed up will have to re-do the system.
PS: Switching The root user is a temporary way to get root privileges, there are other ways to get root privileges, such as adding a regular user's account to the Sudoers group, which is a once and for all way. Of course, it's up to you to manage your goals by whether it's appropriate to add ordinary users to sudoers. Method See here.
This article from "Bitterjava" blog, declined reprint!
CENTOS7, switch from general user to root user