CENTOS7, switch from general user to root user

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.