There are two options to disable requiretty globally or to allow a single command:
- Replace Defaults requiretty by Defaults !requiretty in your /etc/sudoers. This will impact the global sudo configuration.
- Alternatively, this configuration can be changed at a per user, per group or per command basis.
Defaults!/path/to/my/bin !requiretty Defaults:myuser !requiretty
Comments