Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

Everyone says that running processes as root is bad, since it defeats the security and privileges model. But what user should be used to run a startup process? Is it really necessary to create a new user, just to own a single startup process?

share|improve this question
ok, so specifically, this is a startup script that keeps phantomjs running, a service which i am using to create screenshots. There is user input of urls, but things are escaped and theres no problem with xss- – chrismarx Oct 16 '12 at 19:10
Most distributions create a separate user for each daemon process - see for yourself by looking in /etc/passwd. – jw013 Oct 16 '12 at 20:48
up vote 1 down vote accepted

That depends. Things that run constantly (services, servers), have to write data etc., and, most importantly, interact and use untrustworthy data owned by someone else than root should get their own users.

Other startup processes do not require such security measures.

share|improve this answer

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.