Workflow for working on www-data owned files

view full story

http://askubuntu.com – What is the best workflow for working on PHP Webpages (local) in "Ubuntu Desktop". My problem is, when i logIn with my Ubuntu Account, and when i open a php file "geany" i cannot save the file any more, because the file is owned by "www-data". Is there a way to open "www-data" owned files -> edit it -> and save them again as www-data? What is your workflow? (HowTos)