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.
- Open a terminal in macOS.
- 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
- Run command
su bash
in current terminal, then input current user’s password.$ sudo bash Password:
- 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
- You can confirm root user’s new password with command
su - root
now.