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

how do i duplicate the nobody user?

i have a couple of webprojects and need to chown the diffrent projects to diffrent users with absolutly no privileges

i currently use nobody on a project. works fine

share|improve this question
up vote 9 down vote accepted

I would suggest adding the users manually in /etc/passwd. Take a look at the nobody-line, it should be something like


Add another line, change the ID and you should be good to go.


Or if you would like to use a command, this should do it:

useradd nobody2 -d /nonexistent -s /bin/sh
share|improve this answer
Though this will work, I generally suggest you avoid manually editing that file. Use the tools like useradd. If you want to manually edit, consider at least using vipw, which is a tool that will check that your changes are valid. – Zoredache Feb 26 '11 at 0:05
I can understand your point off view, you are right, if you screw the file, you're a long way from home... Added the command ;-) – Bart De Vos Feb 26 '11 at 0:43
I would further suggest NOT using "nobody" usernames -- there's an old joke that "nobody" is the second most privileged user on a system, after root. Give the users a meaningful username and GECOS fullname to distinguish them from each other. – voretaq7 Feb 26 '11 at 0:51
Also true, You might even want to change the shell to /sbin/nologin. Like that he will be unable to login. – Bart De Vos Feb 26 '11 at 12:06

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.