17.linux root user and normal user

Source: Internet
Author: User
Tags root access

When the default installation is complete and you do not know the root user's password, how do I apply root permissions?

(1) Sudo command This allows you to enter the current administrator user password to get superuser privileges. However, by default, 5 minutes of root access is disabled.

(2) Sudo-i This method to enter the current administrator user's password can be entered into the root user.

(3) If you want to use root permissions all the time, switch to the root user through Su. Let's first reset the root user's password: sudo passwd root so you can set the root user's password.

After that, you are free to switch to the root user, and Su enters the root user's password.

Of course, if you want to switch back to the normal user from the root user, you can use Su-val (general user name)

And when you cut back to the root user, just type exit and enter exit again to return to the original user

17.linux root user and normal 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.