[GH-ISSUE #594] RO functionality for subdirectory. #357

Closed
opened 2026-04-08 16:52:18 +03:00 by zhus · 4 comments
Owner

Originally created by @WinnerWind on GitHub (Jul 7, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/594

Specific Demand

I have a directory aptly titled Diary. I want it to be accessible only to the Diary user. This includes reading only. However, I want the entire tree to be accessible to everyone.

Implement Suggestion

dufs --port 8081 --allow-search -a diary:diary@/Diary:ro -a @/ should make / accessible to all users but /Diary accessible only after a login.

Originally created by @WinnerWind on GitHub (Jul 7, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/594 ## Specific Demand I have a directory aptly titled `Diary`. I want it to be accessible only to the `Diary` user. This includes reading only. However, I want the entire tree to be accessible to everyone. ## Implement Suggestion `dufs --port 8081 --allow-search -a diary:diary@/Diary:ro -a @/` should make `/` accessible to all users but `/Diary` accessible only after a login.
zhus closed this issue 2026-04-08 16:52:18 +03:00
Author
Owner

@sigoden commented on GitHub (Jul 8, 2025):

In dufs, the auth user's configuration will merge with the anonymous user's configuration.

-a diary:diary@/Diary:ro => -a diary:diary@/Diary:ro,/:ro => -a diary:diary@/:ro

<!-- gh-comment-id:3046832522 --> @sigoden commented on GitHub (Jul 8, 2025): In dufs, the auth user's configuration will merge with the anonymous user's configuration. `-a diary:diary@/Diary:ro` => `-a diary:diary@/Diary:ro,/:ro` => `-a diary:diary@/:ro`
Author
Owner

@WinnerWind commented on GitHub (Jul 8, 2025):

Hey @sigoden,

I am afraid that I do not understand what you mean. What are you suggesting I do?

<!-- gh-comment-id:3048480102 --> @WinnerWind commented on GitHub (Jul 8, 2025): Hey @sigoden, I am afraid that I do not understand what you mean. What are you suggesting I do?
Author
Owner

@sigoden commented on GitHub (Jul 8, 2025):

Dufs does not support permissions that allow displaying only the directory tree (file structure) without granting access to the file contents. Please try other software.

<!-- gh-comment-id:3048501706 --> @sigoden commented on GitHub (Jul 8, 2025): Dufs does not support permissions that allow displaying only the directory tree (file structure) without granting access to the file contents. Please try other software.
Author
Owner

@WinnerWind commented on GitHub (Jul 8, 2025):

Oh. Thanks for clarifying!

<!-- gh-comment-id:3048505833 --> @WinnerWind commented on GitHub (Jul 8, 2025): Oh. Thanks for clarifying!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#357