I cannot currently use sudo
. I also cannot edit the etc/sudoers
file because sudo
does not recognize me.
$ whomai
myusername
$ sudo visudo
Password:
myusername is not in the sudoers file. This incident will be reported
$ su - root
Password:
My-MacBook-Pro-3:~ root# sudo visudo
root is not in the sudoers file. This incident will be reported.
How can I get permission to use sudo?