I wanted to change the name of my user as well as its home directory. Looking for a way to do this, I stumbled upon this support document.
I did everything as described there, but since I restarted the computer, all that happened is, that I'm not an admin anymore.
I can't unlock anything under System Preferences > Users & Groups, as well as I'm unable to edit /etc/sudoers/
What went wrong? whoami still shows my previous username..
How can I fix this mess? Am I screwed now?
macOS 10.13.4 btw
mount
command tomount -uw /System/Volumes/Data
, and therm
command torm /System/Volumes/Data/private/var/db/.AppleSetupDone
. Also, some newer Macs disallow Single-User mode, so you have to use Recovery mode (with different commands) instead (see my comments at this question). – Gordon Davisson Apr 16 '21 at 21:45