[GH-ISSUE #588] Unsure on the syntax for yaml file for auth #350

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

Originally created by @blackops786187 on GitHub (Jun 13, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/588

Having trouble getting the syntax right for yaml config for basic auth using a sha-512 password. I only want the user to download files and nothing else

Any assistance would be appreciated. Example below

serve-path: '.\FilesToShare'
bind: 0.0.0.0
port: 8000
log-file: .\dufs.log
tls-cert: .\cert.cer
tls-key: .\cert.key
auth:
  - admin:2f757d7d9c0782ed09a730c92574c7637b98255135fe09e4c86dac2832d38acc75ac5f23f694353d434e83158f34b01e54fbd8379042acc6f321edc3e61b3e25@/:rw
auth-method: Basic
Originally created by @blackops786187 on GitHub (Jun 13, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/588 Having trouble getting the syntax right for yaml config for basic auth using a sha-512 password. I only want the user to download files and nothing else Any assistance would be appreciated. Example below ``` serve-path: '.\FilesToShare' bind: 0.0.0.0 port: 8000 log-file: .\dufs.log tls-cert: .\cert.cer tls-key: .\cert.key auth: - admin:2f757d7d9c0782ed09a730c92574c7637b98255135fe09e4c86dac2832d38acc75ac5f23f694353d434e83158f34b01e54fbd8379042acc6f321edc3e61b3e25@/:rw auth-method: Basic
zhus closed this issue 2026-04-08 16:52:15 +03:00
Author
Owner

@sigoden commented on GitHub (Jun 16, 2025):

Your hashed password is incorrect.

Image

<!-- gh-comment-id:2974923981 --> @sigoden commented on GitHub (Jun 16, 2025): Your hashed password is incorrect. ![Image](https://github.com/user-attachments/assets/14239ddb-964d-4940-bce3-8d4a76f13023)
Author
Owner

@blackops786187 commented on GitHub (Jun 19, 2025):

Thanks.

Just to confirm, is the auth-method set properly in the yaml file? Not sure how i can confirm that its only using basic auth

<!-- gh-comment-id:2987459459 --> @blackops786187 commented on GitHub (Jun 19, 2025): Thanks. Just to confirm, is the auth-method set properly in the yaml file? Not sure how i can confirm that its only using basic auth
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#350