Quote:
Originally Posted by bulgin
should I become a part of the www-data group?
The directories are 755 and the files are 644.
|
Which means that for both directories as well as files the GROUP doesn't have write permission (both are readonly for others than the owner).
Becoming part of the group thus won't give you any extra rights.
What the other reply (#5) suggested: make everything OWNER your user and GROUP www-data and leave the permissions as above.
Then YOU (as owner) are the only one who can change them and the webserver only has READ permission and thus cannot change things, which actually is more secure.
If you got an upload capability, let those go to a single directory which is still owned by www-data, so that (only) there the webserver can store files.