mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #617] Auth problems #367
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 @cppbear on GitHub (Aug 18, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/617
Problem
There appears to be a significant regression in permission handling in Dufs v0.44.0 compared to v0.43.0. The read-only (
ro) permission for anonymous users is not being enforced, and multi-user authentication seems to be broken.I have observed two related issues:
Read-Only permission is not enforced:
dufs -A -a @/:ro, anonymous users should only have permissions to browse and download files. UI elements for creating, uploading, moving, deleting, or editing files should be hidden or disabled.roflag. This worked correctly in v0.43.0, where anonymous users were properly restricted.Login functionality is broken with mixed permissions:
dufs -A -a user:pass@/:rw -a @/:ro, the server should default to anonymous read-only access, but provide a functional "Login" button to allow authenticated users to gain read-write (rw) access.These issues have been reproduced on both Linux and Windows systems.
Configuration
The following command-line arguments were used to reproduce the issues.
Scenario 1: Incorrect Read-Only Enforcement
Scenario 2: Broken Login Functionality
Log
No specific errors are shown in the console log upon startup or during the incorrect operations (delete/move). The server starts normally.
Example startup log for Scenario 1:
Screenshots/Media
The screenshot for Scenario 1 would show the WebUI for an anonymous user with the 'Delete', 'Move', and 'Edit' buttons visible and functional. These should be hidden or disabled in read-only mode.
For Scenario 2, a screen recording would show the 'Login' button in the top right corner. The issue is that clicking this button produces no action.
Environment Information