mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #506] Add a configuration item to set unix domain socket files permissions for docker #286
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wayilive on GitHub (Dec 24, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/506
Add a configuration item to set unix domain socket files permissions, this feature exists in alist, alist's configure file has a configuration item 'unix_file_perm' and usually has a value '0666'.
I want to combine using dufs and nginx in one docker compose file and share the unix domain socket between container and the host.
@sigoden commented on GitHub (Dec 24, 2024):
We will not support this feature. This configuration is too trivial.
Please change the file permissions manually after Dufs creates the socket file.
Another option is to change the umask settings. The default file permissions for a Unix domain socket path created by a Rust program are determined by the umask setting.
@Puqns67 commented on GitHub (Apr 19, 2025):
PS: In systemd.service, you can add this line to change UNIX socket permissions after dufs start.
/run/dufs, and you can modify it yourself.