Recipe 5.9. Prohibiting Command Arguments with sudo
5.9.1. Problem
You
want to permit a command to be run via sudo, but
only without command-line arguments.
5.9.2. Solution
Follow the program name with the single argument "" in /etc/sudoers:
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial