Hi,
I had the exact same issue after upgrading to Monterey. I was no longer able to change System Preferences or install new software ...I figured out that the issue is that my username was switched to be a "Standard" user, not an "Admin" user. So... effectively there was NO admin user on my account, thus no way to enter an admin username and password.
The solution is you need to trick the computer into running Setup Assistant again, so you can create a new user. That new user will automatically have admin rights. And then when you log in with that user, you can turn on admin rights for your original username.
I contacted Apple Support, and did a ton more research, and the steps everybody tells you to do are:
- Re-start your computer in Recovery Mode, by holding down Command-R during boot-up.
- Open Terminal
- Type this command. Exactly, including spaces and quotes: rm "/Volumes/Macintosh HD/var/db/.AppleSetupDone"
- Then re-start your computer, and you'll be taken into the Setup Assistant in which you can create a new user.
After going into Recovery Mode, before going into Terminal, I first went into Disk Utility. For some reason the volume listed as Macintosh HD - Data was showing as "unmounted". So I simply hit the "Mount" button. And THEN I did the above steps, and it worked. Finally. Hallelujah.
Your method above worked great for me (Thanks!!) when I had the same problem (all "Admin" users demoted to "Standard") after upgrading to Big Sur on my late 2014 iMac 27" this morning (1/14/2022).
I was ready to give up, reformat my drive, and do a complete reinstall.
The "steps everybody tells you to do" are spelled out in more detail here:
If your Mac has no admin account anymore or if your macOS account lost its administrator rights on macOS 10.14 Mojave, macOS 11 Big Sur or later, you can recover the macOS admin rights easily by running again Apple's Setup Assistant tool to add a new admin account. For getting in the setup...
miapple.me
"How to recover admin rights by deleting .AppleSetupDone file via macOS Recovery Mode"
Step 3. of your solution corresponds to steps 6&7 there. In your method, after launching Terminal in Recovery Mode,
in response to the prompt (which was [-bash-3.2# for me), you simply type (exactly, including the quotes, the space after rm, the space before HD, and the period before Apple):
rm "/Volumes/Macintosh HD/var/db/.AppleSetupDone"
then hit the Return key. The other site does this in two steps - changing to the directory, then the "rm" command.
Your troubleshooting tip about mounting "Macintosh HD - Data" was not needed in my case, but good to know.
I also took the time to run Disk First Aid on the volume from Disk Utility, while I was there.