Mar 08, 2015 Changing root Password on Mac with Directory Utility Directory Utility can be accessed through the preference panel or directly. From the Apple menu, choose “System Preferences”, then click on the “Users & Groups” preference panel Select the lock icon in the corner, then enter an admin password.
- Sep 20, 2016 How to Change the MySQL root Password in Linux or macOS via Command Line September 20, 2016 53 Comments If you have forgot the MySQL root password, can’t remember or want to break in. You can reset the mysql database password from the command line in either Linux or macOS Sierra and OSX as long as you know the root user password of the.
- If FileVault is turned on, you might be able to reset your password using the Reset Password assistant: Wait up to a minute at the login screen, until you see a message saying that you can use the power button on your Mac to shut down and start up again in Recovery OS. If you don't see this message, FileVault isn't on.
I lost the superuser password for my iMac and I don't have the boot disk. I already tried the second answer on this page, but every time I type su
from the command prompt, it still asks for a password that I don't have anymore. Is there another way to reset the superuser password?
5 Answers
Max RiedMax RiedIf you have an administrator user account set up on your Mac in addition to the root account, you can use the Directory Utility to do the following:
Open the Directory Utility from
/System/Library/CoreServices
or in OS X 10.11 and later,System/Library/CoreServices/Applications
.Click the lock button and authenticate as an administrator:
Go to the menu Edit > Change root password...:
It should prompt you to enter a new root password:
Again, you have to have access to an administrator account to do this (so you can authenticate).
Good luck.
user3439894The best solution for 10.7 and 10.8 is to boot in recovery mode (CMD+R). Then, open a terminal window and type the command 'resetpassword'. This will open a window which will allow you to reset any user's password.
Open Terminal.app and run:
Type the current admin password
Type the new password to root
Re-type new password to root
Done!
daviesgeekHow To Reset Root Password Mysql Reference Manual Mac Os
I found this on the web.
The obvious downside is the fact you can't actually recover your password: you'd have to delete the account, and use the new administrator. Nonetheless, you could get hold of the files in the Home Folder before the account is deleted, or even after, as OSX allows you to delete an account but keep the files in it.
The files will be protected, though there are some ways in which you should be able to remove the restrictions on them. You could simply use Terminal to chown
the directory and all it's contents, and once you remove the permissions all the files in your previous account should be accessible to your new account.
If you decide to follow this method I could provide more information on how to chown
the directory, though a web search should do.
Hope it helps!
daviesgeek