How to reset a password on Mac Os X

written by Admin


Posted on 2013-11-27


Problem

I have physical access on a Mac Os X computer, what is the fastest way to reset a password?

Solution

If the OS version is <= 10.4 (tested 10.4):
(power on)
# Command-S (at the grey screen)
# sh /etc/rc
# passwd <username> (type the password twice, when asked)
# reboot

If the OS version is >= 10.5 (tested 10.5 and 10.6):
(power on)
# Command-S (at the grey screen)
# mount -uw /
# launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
# dscl . -passwd /Users/<username> <password>
# reboot

Feedback


Comments

Leave a Comment:

Search

Welcome

We need collaboration and a real boost from our community: write us an email for every trick you find!

This website is a sysadmin swiss-knife for every-day Windows, Linux and Mac administration and troubleshooting

Our database grows if YOU send us your tips and trick as soon as you find them every day!