Hello,
the problem of the root access usually comes into play when your site gets hacked (or if you don't trust the framework written by someone else, which is not always a bad idea). Up until then, you can safely run your application under root privileges.
When your site gets hacked, the main goal is to reduce the attacker's playground. If the attacker gets in with the user's password, it can do anything. If sudo is configured that it doesn't even ask for a password, it's ever worse.
All in all, the best thing is to prepare for the worst case scenario. Assume that the attacker is already on the computer. Make his place as small as possible.
Best,
Gergely
I'm running a Django app using uWSGI and nginx. I already saw in the uWSGI documentation that I should not run uWSGI as root. But does it matter if the user I run uWSGI has sudo access? Should I try to use a user that is not a sudoer or does it not really matter?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7b28bd49-a1df-428a-b828-a085662100a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> ... Should I try to use a user that is not a sudoer or does it not really matter?
You should use the least privileged user you can. In the (unlikely or not) event of an exploit and the user can gain access to console, what can happen? Do you trust the system's configuration?
I think that in a production settings you should go for privilege separation as far as possible. Besides, you could always host more than one service in the same box with different credentials quite nicely.
HTH,
Carlos.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPjvz2%3D6SVOB7CpePNU4M-zk9q0Qh%2B2bY%2BUjpdpFBjVZKHwy3g%40mail.gmail.com.