Forgot User Account Password and can't boot up from El Capitan

Hi. I have El Capitan installed on an external drive hooked up to an iMac running Snow Leopard. I switch back and forth between the two drives usually on a daily basis. The El Capitan drive has been setup for auto login. All of a sudden (as of yesterday) the El Capitan drive is asking me for my User ID and Password. I do not remember the password and am not able to launch El Capitan.


I only created the one User Account when I installed El Capitan. Is there any way I can retrieve my user account password or reset it so that I can get El Capitan up and running?


I saw something about restarting the drive while holding down the COMMAND+R keys and then resetting the password in Terminal. Is this procedure applicable to my situation and is it safe?


Will appreciate any help anyone can offer.

Earlier Mac models

Posted on Aug 6, 2024 9:12 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 6, 2024 9:47 PM

See if you can create a new administrator account by restarting the Setup Assistant:

  1. Boot into Single User Mode: Start/restart your Mac. As soon as you hear the startup tone, press and hold ⌘ + S until you see a black screen with white lettering. (If you end up back on the login screen after a flash of the black screen with white lettering, enter your password and it will return to the black screen.)
  2. Check and repair the drive by typing /sbin/fsck -fy then ↩ enter - as directed by the on-screen text.
  3. Mount the drive as read-write by typing /sbin/mount -uw / then ↩ enter.
  4. Remove the Apple Setup Done file by typing rm /var/db/.AppleSetupDone then ↩ enter.
  5. Reboot by typing reboot then ↩ enter.
  6. Complete the setup process, creating a new admin account.


Be very careful to notice the spaces in those Terminal Commands.


Once you've done that the computer reboots and it's like the first time you used the machine, except all your data will still be there. Your old accounts are all safe. From there you just change all other account passwords in the account preferences!!


I understand & remember quite well the 1st time I did it, but there's not another way as far as I know. :)


Paste these lines into Text Edit so you can arrow thru & see the spaces...


/sbin/fsck -fy

/sbin/mount -uw /

rm /var/db/.AppleSetupDone

Similar questions

6 replies
Question marked as Top-ranking reply

Aug 6, 2024 9:47 PM in response to stopmotion

See if you can create a new administrator account by restarting the Setup Assistant:

  1. Boot into Single User Mode: Start/restart your Mac. As soon as you hear the startup tone, press and hold ⌘ + S until you see a black screen with white lettering. (If you end up back on the login screen after a flash of the black screen with white lettering, enter your password and it will return to the black screen.)
  2. Check and repair the drive by typing /sbin/fsck -fy then ↩ enter - as directed by the on-screen text.
  3. Mount the drive as read-write by typing /sbin/mount -uw / then ↩ enter.
  4. Remove the Apple Setup Done file by typing rm /var/db/.AppleSetupDone then ↩ enter.
  5. Reboot by typing reboot then ↩ enter.
  6. Complete the setup process, creating a new admin account.


Be very careful to notice the spaces in those Terminal Commands.


Once you've done that the computer reboots and it's like the first time you used the machine, except all your data will still be there. Your old accounts are all safe. From there you just change all other account passwords in the account preferences!!


I understand & remember quite well the 1st time I did it, but there's not another way as far as I know. :)


Paste these lines into Text Edit so you can arrow thru & see the spaces...


/sbin/fsck -fy

/sbin/mount -uw /

rm /var/db/.AppleSetupDone

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Forgot User Account Password and can't boot up from El Capitan

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.