Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

marked as duplicate by mdpc, Frands Hansen, Sven, EEAA, Magellan Oct 30 '12 at 4:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
giving tomcat7 sudo rights to run other applications is not advised; try to see if you have no other workaround. – user130370 Oct 29 '12 at 20:59
    
@thinice OP never said it would give root to tomcat – user130370 Oct 29 '12 at 21:08
up vote 1 down vote accepted

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

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.