mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #450] Why use [ dufs -a "@/:rw" ] in webdav fail? it's shows unauth when i try use no username and passwd #242
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 @zhi2xin1 on GitHub (Sep 6, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/450
Problem
Why use [ dufs -a "@/:rw" ] in webdav fail? it's shows unauth when i try use no username and passwd
The client is AIMP play run in my android phone.
When I use admin:admin to login it works(this time with -a admin:admin)
Configuration
use with no config file
Log
.\dufs.exe -a "@/:rw"
Listening on:
http://127.0.0.1:5000/
http://192.168.2.16:5000/
http://[::1]:5000/
2024-09-06T23:51:47+08:00 INFO - 192.168.2.9 "PROPFIND /" 401
2024-09-06T23:51:48+08:00 INFO - 192.168.2.9 "PROPFIND /" 401
Screenshots/Media
Environment Information
@sigoden commented on GitHub (Sep 6, 2024):
dufs -a @/:rwis misconfig, usedufs -Ainstead.And I cannot confirm the 401 problem.
@zhi2xin1 commented on GitHub (Sep 7, 2024):
Maybe you missunderstand my mean, I try to use -a to set user not use -A to set file auth, and the problem is that I can't login without username and passwd
@sigoden commented on GitHub (Sep 7, 2024):
@zhi2xin1
You have two problems:
Misconfiguration
If you want everyone to be able to access every file with read and write permissions, you should run
dufs -A. If you want everyone to have read-only access to all files, you should rundufs.Dufs uses
--allow-*to permit operations. If you do not allow write operations such as--allow-uploador--allow-delete, setting the auth to@/:rwis meaningless.Cannot reproduce
Even when we run
dufs -a @/:rw, everything is fine; We can perform the desired actions without needing to log in; we cannot reproduce the 401 error that your logs indicate.Final
Please provide more detailed information for reproducing, including configuration, execution commands, and screenshots (on webdav client). Otherwise, we won't be able to assist you.