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
  • 4
  • 1
    giving tomcat7 sudo rights to run other applications is not advised; try to see if you have no other workaround. –  Oct 29 '12 at 20:59
  • @thinice OP never said it would give root to tomcat –  Oct 29 '12 at 21:08

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