1

Possible Duplicate:
No TTY present when running commands over SSH in here-document

I installed tomcat7. It is nologin user tomcat7. That said, I need to give tomcat7 sudo rights to run other applications.

I edit sudoer. But requiretty is set, sudo will only run when the user is logged in to a real tty. However tomcat is nologin...

What should I do?

chnet
  • 113

1 Answers1

1

The answer to your question is to edit /etc/sudoers and add

Defaults:tomcat7    !requiretty
, like stated in No TTY present when running commands over SSH in here-document and sudoers: how to disable requiretty per user