Su command under Ubuntu

Source: Internet
Author: User

The su command is used to switch between users, either from a common user to a root user or from a root user to a common user. When a common user switches to a root user, the authentication password is required. In ubuntu, when a user switches from a common user to a root user for the first time, the system will prompt that the su authentication fails. The solution is as follows:

◆ The su to root setting process is as follows:
Test @ test-desktop :~ $ Sudo passwd

Enter a new Unix Password:

Re-enter the new Unix Password:

Passwd: the password is successfully updated.

Test @ test-desktop :~ $ Su

Password:

Root @ test-desktop:/home/test #

To return to a common user from the root user, run the su *** command (or exit the root user and return to the common user)

Root @ test-desktop:/home/test # su Test

Test @ test-desktop :~ $

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.