Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ytydryyf

macrumors newbie
Original poster
Jun 2, 2022
2
0
Hi, I am trying to restore a user account on my MacBook. Normally I have 3 user accounts and a guest account. One user account is the admin and the other 2 are not.

Recently I was in my admin account and the laptop froze. I waited 15 min and then decided to power it off by long pressing the power button. When I turned the mac back on, I only saw 2 of my user accounts and the guest account on the start screen. The admin account is gone.

Normally you can restore a deleted account however you need to use the admin account and password to do this. This is not possible now since mine is deleted. If I log in to one of the 2 non admin accounts and go to users & groups I can see that my admin account is still there with all the files. I just don’t have access to it.

I’m trying to restore this since I have some files that I want to get back.

I tried following the steps in this link:

https://appletoolbox.com/mac-user-account-disappeared-fix/

However when I type /sbin/mount -uw / I get remounting system volume /dev/disk1s5 in read/write mode

And when I type in rm /var/db/.AppleSetupDone I get override -w---r—root/wheel for rm /var/db/.AppleSetupDone? I typed in yes and pressed enter. Next I get rm: /var/db/.AppleSetupDone: read only filesystem

When i type in reboot it just starts up the mac normally. I still see the 2 user accounts.



This is basically the same approach but I also get the same outcome. It just starts up normally:

https://apple.stackexchange.com/questions/164331/i-dont-have-administrator-account-on-my-mac

The MacBook is from mid-2012 and runs macOS Catalina 10.15.6



Does somebody know what I should do?

Thanks in advance.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.