I accidentalley deleted the sudoers file on Mac OS X; is there any way to recover it?
And once you've recovered it, how do you set it to mode 0440?
I presume not but I am desperate to get it back!
If I understand your problem correctly then currently you don't have sudoers and you are trying to do sudo and its not working. In this case to get sudo working you can do the following :
To check sudo is running fine
I know this is a bit surprising that even after not having sudoers, via UI we can do operations in /etc. But it worked for me :)
I'm assuming you are trying to run a
If you have previously granted your account
If you did not put yourself in the