lamp server permissions on development server
Posted
by
user101289
on Server Fault
See other posts from Server Fault
or by user101289
Published on 2012-11-03T22:30:55Z
Indexed on
2012/11/03
23:03 UTC
Read the original article
Hit count: 257
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 www-data
user?
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?
Thanks
© Server Fault or respective owner