I have NOPASSWD set up in the sudoers file for a script that i run but the script still asks for the sudo password.
Here is the sudoers file: Processing: sudoers file…
You have no general rule for your user … add this line under the root
one instead of what you have
pro ALL=(ALL) NOPASSWD: ALL
Really no benefit to have 2 rules of the same …
Also, if somehow the script requires root, then you can add
pro ALL = (root) NOPASSWD: /path/to/script
2 Likes
Also please read this:
Especially this bit:
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.