I have a php page that executes as script. The script is run by the user
www-data. The script is very simply and only copies some files and checks the size using du -h. It all works but only if I put
chmod 775 on the directory. I do not understand why public needs access.
drwxrwsr-x 8 myuser logging
www-data : www-data logging
If I change the owner to
chmod 700 (as expected) is sufficient. However I have multiple users that need to be able to read/write/del files in that folder hence I thought creating the logging group and add all users that need access to the folder to that group would work.
How come public is required even though the group already has rwx?