Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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.