Mac OS X 10.8.2 terminal switch Root User

Source: Internet
Author: User
Tags macbook

Method 1:
1. Enable Terminal
2. jonesduan-MacBook-Pro :~ User $Sudo-I
3. Enter the root password.

Method 2:
It is the same as step 1 and Step 3 in method 1, but the command entered in step 2 is notSudo-IInsteadSudo SuOrSu.

Differences:
The difference between method 1 and method 2 is that the terminal displays different results after obtaining the root permission.

Method 1 is as follows:
Jonesduan-MacBook-Pro :~ Root #

The second method is as follows:
Sh-3.2 #

Why is it like this? What is the specific meaning? I don't quite understand it. Please contact us! Pai_^
However, I prefer the former.

Refer:
Forget the root password on Mac. For more information, see
Http://blog.csdn.net/xuefeng1009/article/details/7421804

For more information about enabling and disabling root users in MAC, see
Http://shlei.iteye.com/blog/855336

Related Article

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.