nextcloud / docker

⛴ Docker image of Nextcloud
https://hub.docker.com/_/nextcloud/
GNU Affero General Public License v3.0
5.95k stars 1.82k forks source link

Update / directory permission for rootless mode (apache image) #1762

Open jaeha-choi opened 2 years ago

jaeha-choi commented 2 years ago

Current / permission (500, owned by root) prevents non-root users (www-data) from searching through /var/www/html directory:

...
(13)Permission denied: ... access to / denied (filesystem path '/var') because search permissions are missing on a component of the path
...

If I enter the docker container and update the permission to 501, it works just fine. But it seems like 555 is reasonable since fpm image is using 555 for /.

The permission itself is more of an upstream issue, but I'm submitting this issue anyway since nextcloud image already updates permissions for a few directories.

joshtrichards commented 3 months ago

I can't reproduce this behavior. Can you provide a Compose (or run command) that should reproduce this behavior?

And I don't see anything resembling these permissions anywhere. Are you sure this wasn't something inherited from a bind mount from the underlying host or something?