Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Resetting IMac without being logged in

I’m thinking of buying an iMac off of a friend. It is barely used, but they are selling bc they do not remember their logins and passwords and are locked out. Is there a way to completely wipe and reset the iMac without being logged in?

Posted on Apr 1, 2020 6:11 AM

Reply
Question marked as Best reply

Posted on Apr 2, 2020 11:43 AM

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. Your old accounts are all safe. From there you just change all other account passwords in the account preferences!!

8 replies
Question marked as Best reply

Apr 2, 2020 11:43 AM in response to emz1110

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. Your old accounts are all safe. From there you just change all other account passwords in the account preferences!!

Apr 1, 2020 12:10 PM in response to emz1110

Doesn't your friend want to be able to use it?


If there were something you could do, wouldn't it be something your Friend would want to try before getting rid of it?


What I mean is, any options you would have he would also have. So one has to question why he wants to sell it, without trying to get it working.


It's very strange that your friend has no inclination to get it working and just wants to sell it.

Apr 2, 2020 6:49 AM in response to Phil0124

Yes, I totally agree. However, he already purchased a new one about a year ago and now this one just sits in his basement. He has tried numerous times to remember the password to login, and then for that particular Apple ID he set up with it. I guess he didn’t understand how it all works when he set it up, leaving all of the passwords to get lost in a move.

Resetting IMac without being logged in

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