I can't get my sudoers file set up correctly. I don't want it to ask me for my password when I sudo as my user account on my OS X laptop. Here is my sudoers file:
root ALL=(ALL) ALL
rcollins ALL=(ALL) NOPASSWD: ALL
People succeed in answering Rich Collins's questions 37% of the time (32 successes in 86 attempts).
Answers by: jer
That looks good, what exactly isn't working?
My sudoers looks almost identical:
root ALL=(ALL) ALL
jtregunna ALL=(ALL) NOPASSWD: ALL
I am still prompted for a password when I use sudo.
Out of curiosity, try adding a line "%admin ALL=(ALL) NOPASSWD: ALL" (assuming of course your rcollins user is part of the admin group (you can find out by typing "id" and looking at your groups).
If it's still prompting you for a password, I have no clue.
On second thought, you may try: rcollins ALL = NOPASSWD: ALL
%admin ALL=(ALL) NOPASSWD: ALL
appears to have worked. Thanks jer!