Do Not Prompt Password for SUDO: NoPasswd

Do Not Prompt Password for SUDO: NoPasswd, here’s a quikie, quikie post… How do you setup a sudo for a user without prompting the user for his password?


Simply add NOPASSWD before the list of commands…again NOPASSWD goes before the list of commands, after your username and host list. The man page has this example:

ray rushmore = NOPASSWD: /bin/kill, /bin/ls, /usr/bin/lprm

Where ‘ray’ is the username, ‘rushmor’ is the host and the rest, you know already….

Leave a Reply

Your email address will not be published. Required fields are marked *