2

I'm pretty beginner-level at Linux, and one thing I've always wondered was whether things like Nginx / uWSGI (for a Django project) should be run under a user that was created for that purpose, or whether my normal login that I use to SSH to the server should be used.

2 Answers 2

5

whether things ... should be run under a user that was created for that purpose

Yes, they must run under special user, because, as widely-announced processes in wild, if they (and only they) will be someway compromised (memory-injection as example) they can perform actions on system only with permissions|possibilities of such user (which usually have minimal rights outside own area)

1
  • "Must" is a bit strong. A special account is prudent for sure - but his account will work.
    – uSlackr
    Mar 8, 2012 at 14:41
1

Apache will have the same privileges as the user it runs as. For security reasons, you want to limit the access Apache has to only the particular files it needs to serve the pages you want. Whereas your user account will generally have a broader set of rights.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .