What’s the best way of handling permissions for apache2′s user www-data in...
Has anyone got a nice solution for handling files in /var/www/ ? We’re running Name Based Virtual Hosts and the apache2 user is ‘www-data’ We’ve got two regular users & root. So when messing with...
View Articlewww-data user can read /etc/fstab
I’m pretty new at this. So I figured out that apache2 starts processes as www-data user. Suppose this user then starts untrusted code. What if I wanted to disallow this user to read any files (like...
View Articleapache2: start processes with other than www-data user
apache2 seem to start new processes with www-data user. How could I make it start new processes with some other user? ubuntu 11.04 by the way. This can only be changed globally (not for single...
View ArticleWhat’s a sensible workflow for deploying webserver content using git push?
I’d like to use git push to update my (nginx) webserver content, while still keeping things secure. One way I could do this would be to ssh to my server, git pull from bitbucket into /srv/www, and...
View ArticleHow to set default group permission in Ubuntu for www-data (apache’s user)?
I have not been able to set a umask for www-data (apache’s user). I tried to put umask 002, like in many other examples I found, in /etc/init.d/apache2 script, or in /etc/apache2/envvars.... Then I...
View ArticleHow do I enable a group of users to edit files in Ubuntu var/www?
I’m hoping someone will be able to direct or help me understand how I can enable multiple users to edit the same files/folders in Ubuntu EC2 server (11.10). I currently use Transmit, the Terminal...
View ArticleLinux Web Server Permissions – Best Practices
On a privately owned server with one website, is there any reason the files/directories within /var/www can’t be group owned by www-data? My understanding is that security risks with www-data having...
View ArticleIs suPHP any more secure than alternatives?
I have a web application needs write access to certain folders on a LAMP server. Since suPHP / suEXEC escalate operations to an account you specify, it seems like your server is no more secure because...
View ArticleUsing www-data through SSH
For development purposes I’m using www-data (on an ubuntu 11.10 server) to ssh in and fire git commands and basic stuff against the webroot. I don’t have things like command history, coloring, etc...
View Articlechgrp to group I am not a member of
I’m creating git repositories, ldap accounts and ldap groups using PHP application. Everything works fine, but I have a problem to set right permissions to git repositories. Every ldap user is a...
View Article