![]() ![]() So, I wouldn't be able to run the appropriate dseditgroup command and fix this problem. On macOS, the sudoers group is also the admin group, so if you're not in the admin group you cannot run sudo either. My first thought was that as a Standard user, I would be prevented from automatically running administrative commands, but that surely if I provided authentication I'd be able to run sudo (substitute user) commands. You see, that third command above? The "-d" means "delete", so it actually removed my local user account from the admin group, converting it to a Standard user account that no longer had access to administrative commands on the system. ![]() What?!?! My user account is listed as a Standard user? That's going to be a BIG problem! Especially because I don't have any other accounts on this system that are an Admin user. Wait a moment, what is going on? I checked my Users & Groups and saw the following: This is bad It took a few days, but I eventually had a software update for one of my applications and while it was running, it prompted me to login with an administrator account.huh? Why do I need to login with an administrator account? No worries, I'll just log into my local account. The fact that I can run sudo in the first place means I'm already in the admin group! But, I didn't pay attention, and I ran the above commands. The first warning sign was the use of sudo to add my local user account ("$(whoami)") to the admin group. I should have spent more time recognizing the danger in the above. I shouldn't have just run the commands as listed. Sudo dseditgroup -o edit -d $(whoami) -t user admin ![]() I "Googled" some solutions and eventually stumbled upon an article that suggested the following sequence of commands would resolve it: sudo dseditgroup -o edit -a $(whoami) -t user admin It all started out simply enough, I had a misbehaving application (Keybase) which everytime I rebooted would ask me to install a helper application and upon going through the process, it would inevitablly fail with some cryptic error. What does that mean? Well, if you want to upgrade any of your applications, install new ones, or change System Preferences, it means you cannot. The only login account I have on my MacBook Pro is no longer an Admin account and is now listed as a Standard user. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |