I am trying to allow a specific command to be run under sudo without a tty. I found that I can disable requiretty for a group :
Defaults:%support !requiretty
But I dont know how to do it for a single command. Is it possible at all ?
|
I am trying to allow a specific command to be run under sudo without a tty. I found that I can disable requiretty for a group :
But I dont know how to do it for a single command. Is it possible at all ? |
|||
|
|
|
You should be able to do:
|
|||||
|
|
|
To disable sudo tty requirement for a single command use the following in the sudoers file:
|
|||
|
|