I want to start the process of learning to manage my own server and leave cPanel / WHM behind. I've just purchased a VPS (Linode) running Ubunutu. I'm going to he hosting multiple sites on there under a LAMP stack.

Anyway, my question is, is it better to create a new user for each site I host and store the files under each, or create one "sites" user and store all the site files under that one user?


  • 1
    you mean something like a "sites" user with access to all folders or "customer1" with their own folder, "customer2" with their own, etc? I'd go for the latter - what happens if your core user got compramised? – tombull89 Feb 16 '13 at 15:32

If done properly, multiple users (e.g. one for each website) limit the damage that can occur if you are hacked. If you share all the files under a single user, and one website is compromised, then the attacker can read the files for every website the server. Typically, they'll go for (database) configuration files.

Having multiple users limits this kind of attack to just the website that is vulnerable, which limits the damage that can occur.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.