[GH-ISSUE #647] Environment variable DUFS_AUTH is broken when using :rw #396

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

Originally created by @literon36 on GitHub (Oct 30, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/647

Problem

Setting the env var DUFS_AUTH="admin:admin@/:rw" results in Error: Invalid auth value "admin:admin@/:rw".
However using DUFS_AUTH="admin:admin@/" (without :rw) or using the CLI by setting command: -a admin:admin@/:rw does work.

Configuration

services:
  dufs:
    image: sigoden/dufs
    ports:
      - 5000:5000
    volumes:
      - ./data:/data
    environment:
      - DUFS_SERVE_PATH=/data
      - DUFS_AUTH="admin:admin@/:rw"

Log

dufs-1 exited with code 1
dufs-1  | Error: Invalid auth value `"admin:admin@/:rw"

Screenshots/Media

n/a

Environment Information

  • Dufs version: 0.45.0
  • Browser/Webdav info: Firefox
  • OS info: Docker (Ubuntu)
  • Proxy server (if any): NPM + Cloudflare
Originally created by @literon36 on GitHub (Oct 30, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/647 **Problem** Setting the env var `DUFS_AUTH="admin:admin@/:rw"` results in `Error: Invalid auth value "admin:admin@/:rw"`. However using `DUFS_AUTH="admin:admin@/"` (without :rw) or using the CLI by setting `command: -a admin:admin@/:rw` does work. <!-- Provide a clear and concise description of the bug you're experiencing. What did you expect to happen, and what actually happened? --> **Configuration** ```yml services: dufs: image: sigoden/dufs ports: - 5000:5000 volumes: - ./data:/data environment: - DUFS_SERVE_PATH=/data - DUFS_AUTH="admin:admin@/:rw" ``` <!-- Please specify the Dufs command-line arguments or configuration used. --> <!-- If the issue is related to authentication/permissions, include auth configurations while concealing sensitive information (e.g., passwords). --> **Log** ``` dufs-1 exited with code 1 dufs-1 | Error: Invalid auth value `"admin:admin@/:rw" ``` <!-- Attach relevant log outputs that can help diagnose the issue. --> **Screenshots/Media** n/a <!-- If applicable, add screenshots or videos that help illustrate the issue, especially for WebUI problems. --> **Environment Information** - Dufs version: 0.45.0 - Browser/Webdav info: Firefox - OS info: Docker (Ubuntu) - Proxy server (if any): NPM + Cloudflare <!-- e.g. nginx, cloudflare -->
zhus closed this issue 2026-04-08 16:52:35 +03:00
Author
Owner

@sigoden commented on GitHub (Nov 3, 2025):

The quotes in your Dockerfile are incorrect.

environment:
  - DUFS_AUTH=admin:admin@/:rw
<!-- gh-comment-id:3479870523 --> @sigoden commented on GitHub (Nov 3, 2025): The quotes in your Dockerfile are incorrect. ``` environment: - DUFS_AUTH=admin:admin@/:rw ```
Author
Owner

@literon36 commented on GitHub (Nov 3, 2025):

This does indeed explain a lot lol
I copied it straight from the README section about env vars... Maybe the the quotes there should be removed then(?) or are they needed in the command line to make sure the Shell doesn't interpret the symbols?
Thanks for making this neat project btw, it's quite useful! :)

<!-- gh-comment-id:3479982874 --> @literon36 commented on GitHub (Nov 3, 2025): This does indeed explain a lot lol I copied it straight from the [README section about env vars](https://github.com/sigoden/dufs?tab=readme-ov-file#environment-variables)... Maybe the the quotes there should be removed then(?) or are they needed in the command line to make sure the Shell doesn't interpret the symbols? Thanks for making this neat project btw, it's quite useful! :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#396