How To Reset MacOS Root User Password

In this article, i will tell you how to reset root user’s password when your mac machine is running.

1. Reset Root User’s Password Steps.

  1. Open a terminal in macOS.
  2. Input command su - root, then input the root user’s password, because i forget the root user’s password, then it will prompt an error message.
    $ su - root
    Password:
    su: Sorry
  3. Run command su bash in current terminal, then input current user’s password.
    $ sudo bash
    Password:
    
  4. After you input current user’s password, run command sudo passwd root in terminal. Input the new password for user root twice.
    bash-3.2# sudo passwd root
  5. You can confirm root user’s new password with command su - root now.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.