Linux--ubuntu the root user and the normal user switch

Source: Internet
Author: User
1. When performing certain operations that require higher permissions, you can use (sudo + raw commands) for higher permission operations, but you will need to enter a password each time you use it for the first time, which is 2 more hassle. Change the root password to avoid 1. Problems in the.
  • Use sudo passwd in terminal to change password

 

  • Use the (SU root) command to switch to the root user. (The first time the password is not changed, the use of the SU root command will prompt authentication Failed, this time need to perform the above to modify the root user password operation)

  • Exit root User

The root password is not required every time the command is executed, even with the sudo + original command.

Linux--ubuntu the root user and the normal user switch

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.