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 am running Ubuntu 9.10 and would like to set up a few custom server programs. I don't think I should be running them as root, and I have no need to. How do I create a user and group that is similar to www-data for apache?


share|improve this question
up vote 1 down vote accepted

On a Debian/Ubuntu system usually most install scripts use a command like this to create a service account.

sudo adduser --system --group {username}
share|improve this answer

sudo useradd -r username

share|improve this answer

Your Answer


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