Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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, SvW, 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. –  coincoin Oct 29 '12 at 20:59
    
@thinice OP never said it would give root to tomcat –  coincoin Oct 29 '12 at 21:08

1 Answer 1

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.