How to reset forgotten Administrator password on MacO X?
We recovered a MacBook from our Marketing manager; it was the only Mac in the company so our skills with it are somewhat limited.
The Mac boots fine and logs in, but we are stuck with doing admin-type things. Whenever we wish to install an app, or change settings, etc, we are prompted for the admin password - which we do not know. It is possible we could ask the ex-Marketing manager but she is ex-staff and I don't know her personal number.
I know in Windows I have a variety of options, eg boot from a Linux CD with tools to reset the Windows admin password, but I am an ignoramus about this on the Mac.
Alternatively, we consider it may be possible to reformat the Mac and reinstall MacOS, but in this situation we don't have any of the CDs - the lady "lost" them somehow, which includes MacOS as well as Adobe Creative Suite plus MS Office. I'd prefer to retain the software (which was legitimately purchased).
If anyone has suggestions I would be grateful - thank you.
Solution 1:
There are at least three ways to reset the login password of an account.
Using Reset Password.app on the recovery partition:
- Hold command-R on startup.
- Select Utilities > Terminal.
- Run
resetpassword
, which opens the Reset Password application. - Select the volume and account and reset the password.
Using dscl
in single user mode:
- Hold command-S on startup.
- Run
mount -uw /
. - Run
launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist
in 10.7 or later orlaunchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
in 10.6 or earlier. - Run
dscl . passwd /Users/username password
whereusername
is the name of the account andpassword
is the new password. - Run
reboot
.
Creating a new admin account:
- Hold command-S on startup.
- Run
mount -uw /
. - Run
rm /var/db/.AppleSetupDone
. - Run
reboot
. - Go through the steps of creating a new account.
- Reset the password of the old account from the Users & Groups preference pane.
If FileVault 2 is enabled, you need to enter a password to start up in single user mode, and the list of accounts in Reset Password.app will be empty, so none of these methods can be used.
None of the methods above resets the password of the login keychain. If automatic login is enabled, you can print the password of the login keychain by running a command like this in single user mode before resetting the login password:
sudo ruby -e 'key=[125,137,82,35,210,188,221,234,163,185,31];IO.read("/etc/kcpassword").bytes.each_with_index{|b,i|break if key.include?(b);print [b^key[i%key.size]].pack("U*")}'
Solution 2:
To reset password, You can force reseting admin password even if you forgot the password. This is not impacted to the installed application.
Steps:
- Boot Mac by pressing "command + R" until apple logo comes up which is "OSX Recovery" mode
- Go Utility Menu>Run Terminal
- Type "resetpassword" command
- Choose HDD and admin account which is initially created.
I'm quite new user for Mac so I'm not sure when it's implemented like this way but I heard old OSX has a menu in the recovery system(command + R) not like this way as I mentioned.
To install OSX, You can ask genius bar@apple store to install or you can install it via internet(Wired Lan) by pressing command+R option which is calls OSX recovery mode.
To backup the local disk, It's possible to backup local disk using the function called "Time Machine" on external drive and possible to restore.
FYI http://support.apple.com/kb/HT4718?viewlocale=en_US