Sometimes we set the root password for the Mac, not for a while, but forgot the password, how to do? Here are some ways to help you solve:
Step 1: Turn off your Mac system first
Step 2: Power on, hold command and s two buttons until the following interface appears:
Step 3: Above has prompted you to enter the command, first enter:/sbin/fsck-fy and then enter, wait for some time, input command again:/sbin/mount-uw/Then enter
Step 4: Enter: Launchctl load/system/library/launchdaemons/com.apple.opendirectoryd.plist and return
Step 5: Enter DSCL. Passwd/users/root 123456, this command is to set the root account password is 123456, if you want to set up your normal account is the power-on password, the root of the name of your account can be changed.
Step 6: Enter reboot or exit carriage return, the password has changed.
Mac OS X Forget the root password to do, forget the login password (normal account password) is the same