0

I have a local Mac machine with Catalina that I haven't used in a while. I have forgotten the GUI password for the account, but I still can SSH into it because of my public key being on that machine. I also can't remember if I had a root account setup/or it's password.

Is there a way that I can reset the GUI password without having to restart the machine and hence losing the current state as the preliminary step for going through Apple's recommended process? I can't create a new (admin) user either because I don't remember the password and hence can't escalate to sudo privileges.

1

This might still work? If you log in with SSH.

FSCK the drive for a sanity check.

/sbin/fsck -fy

Mount the drive so it is writeable.

/sbin/mount -uw /

Deleting this placeholder file that tells macOS that a user has already been setup.

rm /var/db/.AppleSetupDone

reboot. Make a new user, reset the password of the old account. Also, reset the login keychain in the old account.

1
  • Thanks for the reply. I fortunately remembered the password and jotted it down this time! Cool trick however, I hope and I do not I hope I get to try it someday. – Akash Agarwal Jan 13 at 8:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .