Forgot MAC Password / Forgot MAC Users & Password / New Account using Commands
https://letsknowaboutcomputer.blogspot.com/2012/12/forgot-mac-password.html
If you have forgot Mac OS X account password then there is a tricky method which let you create a new administrator account on Mac OS X and through that admin account you can reset password of previous account.
So, let’s see how to create an administrator account on Mac while you lost your Mac passwords. This guide written using Mac OS X Snow Leopard.
Now type the following commands one after one and press “Enter” button after each command to execute it individually
/sbin/mount -uaw
rm /var/db/.applesetupdone
reboot
Fill all entries and hit Continue button.
So, let’s see how to create an administrator account on Mac while you lost your Mac passwords. This guide written using Mac OS X Snow Leopard.
Creating new Mac OS X account to recover old account
STEP 1
Restart system and hold “Cmd + S” keys from keyboard until it shows Terminal.STEP 2
Now type the following commands one after one and press “Enter” button after each command to execute it individually
/sbin/mount -uaw
rm /var/db/.applesetupdone
reboot
STEP 3
“Reboot” command will restart the Mac and you will see the “Welcome wizard” after beautiful welcome messages animation.Fill all entries and hit Continue button.