Switch between common users and root in ubuntu

Source: Internet
Author: User
When a common user switches to root1. if the root password is not set, run the following command: sudopasswdroot enter key 2: prompt to enter the current user password, enter the enter key 3: prompt to enter the new unix password, set the enter key 4 and enter the new password enter key 5 and enter the command :...

Common users switch to root

1. if the root password is not set, run the command: sudo passwd root enter.

2. enter the current user password and enter the enter key.
3. you are prompted to enter a new unix password and set the enter key.
4. enter the new password again.
5. enter the command: su return key.

6. enter the set unix password and enter the enter key.

 


Switch root to normal user

1. press ctrl + D or enter the exit command.

Author: Ling Feng

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.