Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a startup script placed in /etc/init.d wherein I make the following call:

nohup sudo -u myuser $CATALINA_HOME/bin/startup.sh 2>&1  

This causes Tomcat to be run as myuser, which is expected. However after issuing the reboot command the system starts up and root is now the owner of this process. How can I force the process to be started off as myuser on reboot?

share|improve this question
add comment

1 Answer

Are you sure that you do not have multiple scripts starting the process, and the one that is called first is configured to run as root? The script should have the same effect when started as root at startup as during operation.

What are the operating system specifics?

share|improve this answer
    
Could you be more specific about what you would like to know about the system? –  Woot4Moo May 25 '10 at 19:11
    
I am sorry, I missed RHEL in the topic. –  sajb May 25 '10 at 19:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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