Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting Unix file permissions #437

Open
andymarden opened this issue Dec 31, 2023 · 0 comments
Open

Setting Unix file permissions #437

andymarden opened this issue Dec 31, 2023 · 0 comments

Comments

@andymarden
Copy link

When using local storage on a docker bind mount, the whole thing runs as www-data. I need to be able to ensure that permissions set on created file and folders is correct - umask would be the normal way but I notice that Flysystem has:

\League\Flysystem\UnixVisibility\PortableVisibilityConverter::fromArray([
'file' => [
'public' => 0666,
'private' => 0660,
],
'dir' => [
'public' => 2777,
'private' => 2770,
]
])
which seems exactly what I need. I imagine that is also the case in most people's multi-user shared systems. Looks like I need to build an image myself after forking the repo.

I would suggest that is added to the official image since it is so useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant