Reset Mac OS X password without install CD
October 25, 2008
Lost the administrator password? Here is how you reset it.
Boot into single-user mode by keeping Command-S pressed during boot.
mount -uw /;
cd /var/db/netinfo/local.nidb/;
nicl -raw;
(within the nicl shell):
-delete /users/root passwd
-append /users/root passwd DES_CRYPT_KEY
exit
sync
reboot
MacOS 10 still uses that old, weak DES encryption? Well as
long as it is safer as Windows's NTLM I guess...
You can compute the DES hash DES_CRYPT_KEY using
vxcrypt from the Vitalnix tool suite.