sudoers: how to disable requiretty per user

You said that you want one particular user to not require a tty. That’s the default behavior. Nevertheless, you can explicitly set that like this:

Defaults:username !requiretty

If you want everyone else to require a tty, then you’ll have to uncommment the line.

Leave a Comment