Yeah that works, the only problem is that when I (as user martin) create a file, it will be listed as martin:martin permissions... this means www-data (and Apache) can't touch it. Sure, I can do a regular chown -R www-data:www-data /var/www but that's just annoying... I was hoping to avoid it.

Zeb Packard wrote:
Wouldn't it work to just add your regular user to apche's group (www
in my config) and change the group's permissions.

######
usermod -Gwww <regularUser>

su

chmod -R g=w /srv

# this is necessary in my distro cause everything is owned by root by default.

chgrp -R www /srv

######


Now I'm not a security guru or anything, but it seems like we want
Apache to run with it's default settings and we mainly don't want
outsiders writing to our server directory.
_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to