How can I restore/repair my broken /etc/sudoers file?
so i messed with something I shouldn't have, I tried following this tutorial ( http://www.onlineaspect.com/2008/12/02/how-to-start-mamp-on-port-80-without-a-pa ssword/) to execute a single .sh script without being prompted for a password.
Anyway, I opened the /etc/sudoers file with TextMate, wrote a the line "username group = NOPASSWD: /path toscript" onto the first line (file seemed to be empty when opened by me) but this didn't work.
I deleted the content of the file so it is blank now and saved it again but now I cannot 'sudo' anymore.
Instead I just get a prompt saying:
*Syntax Error*
root is not in the sudoers file. This incident will be reported.
Is there any way I can repair this file or simply have the OS rebuild it?
Thanks,
Jannis
Mac Pro (early 2008), Mac OS X (10.6.2), Dual Quad 2,8Ghz / GeForce 8800GT / 16GB RAM / Boot: 128GB Crucial SSD