Blank Sudoers File

command lineerrorsudo

I have been trying to set up some stuff for JS, but I need to use sudo. Every time I use sudo, I get this message.

>>> /etc/sudoers: syntax error near line 80 <<<
>>> /etc/sudoers: syntax error near line 82 <<<
>>> /etc/sudoers: syntax error near line 84 <<<
sudo: parse error in /etc/sudoers near line 80
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

I checked the /etc/sudoers file and found out that it is completely empty. How would I fix this?

Best Answer

I know that Todd said that it wasn't smart to do this, but I went to the opensource sudoers file from apple and copied that into my sudoers file, now sudo is working just fine!