I have www-data (apache) and craig (me) as users on this Ubuntu 9.04 machine.
So I have a bunch of files that belong to the user 'www-data', but I can't write to them without either:
- being root
- chmod'ing the files so they are world-writeable
- or chown'ing them so they are in my user group, then chmod'ing them so they are group-writeable.
Is there anything I can do so that my user (craig) by default has access to all of www-data's files as if they were my own files?
Perhaps I'm looking at the problem the wrong way - in which case, how should I be doing this?
Thanks!