Subscribe / Unsubscribe Enewsletters | Login | Register

Pencil Banner

How to hack into a Mac and change the password

David Price | May 17, 2016
Forgotten your Mac password? Don't despair. It's pretty easy to sneakily reset the password - here's how

Reset or start up the Mac and hold down Command + S while it boots to bring up Single User Mode. If you're running OS X 10.6 Snow Leopard or earlier, type the following:

/sbin/fsck -fy
/sbin/mount -uw /
launchctl load /System/Library/LaunchDaemons/
dscl . -passwd /Users/[username] [new password]

If you're running OS X 10.7 Lion or later, type this:

/sbin/fsck -fy
/sbin/mount -uw /
launchctl load /System/Library/LaunchDaemons/
dscl . -passwd /Users/[username] [new password]

In both cases, you'll need to replace [username] (including the brackets) with the user of the account whose password you want to change, and [new password] (again, including the brackets) with your new password. If, for example, your username was smithjohn and the new password you wanted was 12345678, you'd type

dscl . -passwd /Users/smithjohn 12345678

What if you don't know the username for the account? No problem - Single User Mode will happily list the home folders on the Mac, and in most cases these will match the available usernames. Type:

ls /Users

and hit Enter.

How to hack into a Mac without the password: How to stop people changing your password and hacking into your Mac

It's worrying, really, how easy it is to reset and thereby bypass the password on a Mac. But if reading this article has disturbed your peace of mind, try not to worry: there's a strategy that will help. By turning on encryption you'll prevent anyone else from using these methods on you.

(Just remember that, if you forget your password, encryption will keep you out just as effectively as anyone else. So this is a good policy for people carrying corporate laptops containing sensitive data that's backed up on company servers, but risky for home users who wouldn't like to be locked out of their files.)

If you're satisfied that the benefits of encryption outweigh the risks for you, open System Preferences on your Mac and select Security & Privacy. Go to the FileVault tab, click the padlock icon at the bottom left, enter your password and click Unlock, and the finally hit Turn On FileFault. When you've finished updated your security options, click the padlock again to stop other people making further changes.

How to stop someone changing your Mac password

Source: Macworld 


Previous Page  1  2  3 

Sign up for CIO Asia eNewsletters.