Allow a user to run only a specific command with sudo








run
sudo visudo
and add the line like below:
wilson ALL=(ALL) NOPASSWD: /full/path/to/command arg1



No comments:

Post a Comment