I asked that question briefly here but then I figured maybe the community can hAlp:
What’s the right way to setup permissions, say you’re on linux (ubuntu12), running nginx 1.4 with redis
drwxr-xr-x 5 www-data www-data 4096 Feb 20 17:50 mysite.com
drwxr-xr-x 2 www-data www-data 4096 Feb 20 17:49 forums.mysite.com
www-data is the nginx user, and a my current user is
admin which can sudo btw.
To setup NodeBB in
forums.mysite.com, I will need to
sudo to do anything, from
git clone to running any command in there, should
admin own that directory? or is it just better to place the NodeBB dir in admin’s home?
What is your conventional way of doing that in production? I still want to be able to setup
supervisor to start on boot too, so calling
supervisor shouldn't need sudo