Super User is a question and answer site for computer enthusiasts and power users. 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

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

nohup sudo -u myuser $CATALINA_HOME/bin/ 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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .