I'm in High Sierra (10.13.6) and recently I renamed my account in Users & Group. Now I lost access to my administrator (so I can't install apps or change settings in System Preferences).
I already tried to solve my problem by following I don't have administrator account on my mac but I can't make it past the
rm /var/db/.AppleSetupDone
command, or maybe I'm doing something wrong there?
However, here's the single-user mode screenshot:
Best Answer
You need to enter the commands precisely, noting all spaces. If no message is shown, the command was successful, much like
/sbin/mount -uw /
. Enter precisely the following, followed by ⏎ Enter/Return:rm
and/var
. Make sure the space is typed.You should not receive a message for either command and will be returned to the prompt (#) after each is executed. Finally, run
reboot
.