1485 Views 5 Replies Latest reply: Jan 6, 2011 10:52 AM by Kappy
At this point it's impossible to know what damage you have done. You should never remove an admin password. You can change the password in single-user mode:
To start, reboot in safe mode.
At the prompt enter the following:
Press RETURN. If you receive this message: ** The volume (nameofvolume) appears to be OK then continue to the next command. If you receive this message: *** FILE SYSTEM WAS MODIFIED *** then repeat the above command until you receive the OK message. If you repeat the command seven times without receiving the OK message then you cannot repair the drive and should not continue.
/sbin/mount -uw /
Then, type in pressing RETURN after each:
netinfod -s local
You’ll be asked to come up with a new password. If you want to change a login’s password, substitute ‘root’ with the username. After that, enter:
If this doesn't work then you will have to reinstall OS X, but you cannot do that without the installer DVD.
OK, then try this one. The other must have been for an earlier version of OS X:
How to change your username and/or password from the Terminal
1. Boot into single-user mode. Enter at prompt:
mount -uw /
launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
dscl . -passwd /Users/username password
Replace username with the targeted user and password with the desired password.
The above tip is attributed to Satcomer.
Assuming you entered the commands correctly, then I'm at a loss. I don't quite understand the permission issue since you are root when in single-user mode. I've never used that information but found it elsewhere.
At this point I would say, reinstall OS X.
Reinstall OS X without erasing the drive
Do the following:
1. Repair the Hard Drive and Permissions
Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
2. If the drive is OK then quit DU and return to the installer. Proceed with reinstalling OS X. Note that the Snow Leopard installer will not erase your drive or disturb your files. After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.