Mac Start root User

Source: Internet
Author: User
Tags macbook

Method One:
1. Open Terminal
2. jonesduan-macbook-pro:~ user$ sudo-i
3. Enter the root password.

Method Two:
And method one in the same 1 and 3 steps, only the second step to enter the command is not sudo-i but sudo su or su.

Difference:
The difference between method one and method two is that the terminal does not display the same when root permission is obtained.

One way to do this is:
jonesduan-macbook-pro:~ root#

The second method is this:
sh-3.2#

Specifically why this is the case, where the specific meaning is what, not quite understand, welcome to communicate! ^_^
But individuals prefer to use the former.


Reference:
Forgot root password under Mac, modify root password introduction see
http://blog.csdn.net/xuefeng1009/article/details/7421804

Enable and disable root user under Mac see
http://shlei.iteye.com/blog/855336

Mac Start root 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.