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

I have a Ubuntu 10.4 system on which I'm running OpenFire but it currently runs as root. How can I make Openfire run as a different user?


share|improve this question
How did you do the install? I don't have an OpenFire device handy to look, but if I remember correctly, the .deb installation created a user for the service. – Shane Madden Aug 23 '11 at 15:19

I restart openfire nightly with a cron, so you should also be able to use this:

sudo -u other_username /home/openfire/bin/openfire start
share|improve this answer

Not completely sure about OpenFire, however something like su user openfire should work.

share|improve this answer
Openfire is a chat server, you don't start something like that manually. – Sven Aug 23 '11 at 10:45

Your Answer


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.