Let's say you forgot your password on the Mac. Or have just purchased a Macintosh from hands, and the former owner has locked the computer. There are several elegant solutions to this problem without the installation DVD-ROM with Mac OS X.
Perhaps this topic has been bored, but it affects the important question that people ask constantly. I do not want to think that any user, once next to your computer can theoretically obtain access to it for several minutes. And before you decide that the Mac OS X has a serious vulnerability, I hasten to you "good news": any operating system, whether Windows, Linux or Mac can be hacked for a couple of minutes, if you know what to do. A hacker sitting at your computer, can circumvent any security measures.
- Turn on or restart your Mac.
- At the time greeting (or gray screen), hold down the keyboard Command + S to boot into single user mode.
- Step is optional, but it is useful to go through, because this way you check for errors on your hard drive. In the prompt, type fsck-fy and press Enter. Wait until the end of the disk check.
- Write mount-uw / and press Enter.
- Next launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist and press Enter.
- Type ls /Users and press Enter. The command will list all users on a computer - useful if you do not know or do not remember.
- In line dscl . -passwd /Users/username password Replace "username" with your user name (see above), and instead of "password" enter the code combination of characters and press Enter.
- To reboot execute the command reboot.
- Turn on or restart your Mac.
- At the time greeting (or gray screen when you turned it off), hold down the keyboard Command + S to boot into single user mode.
- Write to the line sh /etc/rc and press Enter.
- Type passwd username and replace "username" for a short user name of the account, which are going to reset your password.
- Enter the desired password and press Enter.
- To reboot execute the command reboot.
Cheating and creating a new Mac user
- Turn on or restart your Mac.
- At the time greeting (or gray screen when you turned it off), hold down the keyboard Command + S to boot into single user mode.
- Step is optional, but it is useful to go through, because this way you check for errors on your hard drive. In the prompt, type fsck-fy and press Enter. Waituntil the end of the disk check.
- Write mount-uw / and press Enter.
- Then rm /var/db/.AppleSetupDone and press Enter.
- Now shutdown-h now and press Enter.
The third method requires some explanation.
Instead replace the password in the first two methods, it is in its own way, cheating of the operating system. The trick makes the system think that it still did not run. This means that when you restart the Mac, you have to re-take all the steps in setting and registration. Do not worry, all information on mac in safe and sound. Walk through the steps, but in the end give up the migration of data on your Mac.
Then log on Mac under a new administrator account and go to Settings Panel -> User Accounts. Perhaps, before making any changes need to unlock the padlock in the bottom left corner. In the left column you should see the original(s) account. Click on the desired unchecked and turn it into a standard account (uncheck the "Enable. This user to administer computer") and change your password. Now you can go to the computer under that account and get access to all your files and programs. You can go back under the Administrator account and check checkbox "Allow. this user to administer computer "in System Preferences to give administrative rights to the user.
As always, remember that a combination of single-user mode (single-user mode or superuser) and the terminal is extremely dangerous and can lead to big problems in the event of your mistakes.
If you have a password in the Keychain (Keychain Access), is likely to be reset as well. Do this by choosing the "input" under a bunch of keys on the left and click Delete from the Edit menu. You will lose all the keys and add them again.
No comments:
Post a Comment