I was having fun messing around in terminal when suddenly, I messed up my sudoers file in /etc/. Now the sudo command hangs and I am not able to change it back. I would rather not reset my computer completely. Is there any way to restore the sudoers file back to defaults? (I'm on mac osx 10.12.6). Thanks
11 Answer
You can start your Mac in single user mode and from there, revert the changes you've made.
Edit: You may find here the original sudoers file, or at least a reference to understand what went wrong in your edition.
Remember to use visudo to check the syntax of your sudoers file.
2