Directories user permissions

What is the problem you are having with rclone?

Good Day! Thank you for good product btw:) I am facing some noob problem. I set up rclone webdav serve, but one thing left. I was wondering if I could configure user permission. I do create users in htpasswd, and want to give them access to specific directories. Is it possible? I tried to add permissions in rclone.conf by using Allow command, but it did not help. Tried .htpaccess also no success. So is it possible with rclone instrumentation to give my users permissions on specific directories?

Run the command 'rclone version' and share the full output of the command.

rclone v1.64.0

  • os/version: alpine 3.18.3 (64 bit)
  • os/kernel: 5.15.0-83-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.1
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Mounted volume in Longhorn

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone serve webdav /files  --copy-links --vfs-cache-mode writes --addr :8080, --htpasswd /htpasswd/htpasswd --config /conf/rclone.conf

I do not think it is possible directly.

If you only have a handful of users you can run multiple webdav servers and use exclude/include to limit visible directories:

User1:

rclone serve webdav /files --addr :8080 --exclude /dir1/** --exclude /dir2/**

User2:

rclone serve webdav /files --addr :8081 --include /dir1/**

That's sad :frowning: . Your suggestion a bit not handy for me, I am about to create more than 20-30 users. Might need to get into auth-proxy? WDYT?

Rclone is not big scale enterprise solution.

Not sure about auth-proxy.

Maybe others will have some better ideas.

You could use the auth proxy to serve specific directories to specific users but they will have read/write permissions on that directory. That is really what it is for.

If the backend has a read only flag you could set that too.

TY for fast replies guys. I found your product very useful. Can i have your opinion on question. In prod environment with more than 30 users will rclone webdav work fine (resources is not a problem)?

Also any donation here? For coffe :slight_smile:

serve webdav works very well and will fill up your network pipes just fine. Its probably the most efficient of the rclone servers.

It is fairly light on features though however if what it has got fits your needs then it should work fine.

I know from personal correspondence that people use the rclone servers for all sorts of demanding production work!

Check out Sponsor @rclone on GitHub Sponsors · GitHub or convince your boss that you need a support contract :slight_smile: