Mac OS X 10.11.4 forgot root password how to handle

Source: Internet
Author: User

I recently learned about Linux, plus the current notebook is a Mac, self-class Linux command and file system management, so try to use the root account, but a few months ago to initialize the root account password, now found to forget the root password, All kinds of information on the Internet to try to reset the root password or retrieve root password, are not successful, comprehensive online various methods and my exploration, and finally found that can take the following two steps to achieve the root password reset:

(1) Log in to the system with a normal user name and open the terminal terminal,

Input: sudo bash

password:***** (current user's password)

After success, enter the bash-3.2# command mode.

(2) in bash-3.2# command mode,

Input: sudo passwd root

New password:****

Retype new password:****

After successful and root password modification is complete!

Verify that the modification was successful:

After switching to a normal user,

Input: su root

password:**** (new root password)

After successful entry into the sh-3.2# command mode, you can also log off the current user with the root user name and the new password to log on to the system for use.

Mac OS X 10.11.4 forgot root password how to handle

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.