Catalina Sudo Issues
Hey there! I had to reset my MacBook to factory settings. I have some administrative issues with the machine now.
I use a .dotfiles repository with a bunch of settings and configs to be able to get back up and running on a new machine.
Some of these scripts require `sudo` to set system defaults for example. Now… I can't get sudo to work properly on Catalina. No matter what I do: It won't accept my password when I'm trying to use sudo on my user account.
I already have edited the sudoers file by enabling the root account. Just adding my user (ag) to the file like the following ag ALL = (ALL) ALL still does not allow me to use sudo for some reason.
It will prompt for my password, but tell me that it's incorrect when I type it in.
For manual commands I can avoid this by specifying NOPASSWD in the sudoers file but this won't work for scripts either.
I have been trying to find a solution for roughly two hours now. Maybe I'm just too stupid to use a search engine, but I couldn't find anything that's really helpful online. I really hope that someone could point me in the right direction.
Thanks,
Andreas