I run a LAMP server on a ubuntu laptop I use only for development. I am not greatly concerned with security, since the server is never accessible outside the local network, and it's turned off when I'm not using it.
My question is what is the simplest and 'best' way to set permissions/users/groups so that when my
myself user creates, edits or writes files in the webroot, I won't need to go through and CHMOD / CHOWN everything back to the
Should I add
myself to the
www-data group? Or chown the webroot to
www-data:myself? Or is there a best practice for this situation so I don't have to keep re-setting the ownership of these files?
Perhaps it would help to note that I use PHP CMS systems like wordpress pretty extensively-- so it's important that the webserver "user" should be able to write new files-- since otherwise it would not be able to install new plugins, templates etc. in a web directory owned by a user.