I'm working in the www
directory of apache. I need to do this because other people in my company need to see my work constantly - whether to access updated versions of things I'm working on (mostly css files) or to give me feedback (this is all on a local network).
I'm working with a live build of the latest Ubuntu 14.04, with Apache 2.2. And the permission system is giving me a headache. Mostly this is due to the surprising inconsistency when working with the www
directory - sometimes I can access everything, sometimes I can access them but can't copy to other places, sometimes some directories are inaccessible. I think the last update presented more weird limitations that didn't exist before.
I always work around this somehow. Either I sudo cp
through command line, or I do sudo nautilus
or I change the permissions for a limited period of time (apache needs the permissions to be for www-data
, else when you try to access the site through localhost
the site receives a 403
for all its static files).
But I've had enough, this is ridiculous. I need that directory to behave as if I own it, but not have any clash with Apache.
I can find a lot of answers around this site about permission problems, but like I said - I don't have a problem solving this temporarily. But I'm looking to understand what's the right way to work with the www directory, without breaking anything and without having to sudo every little thing.
Thanks in advance