POSIX permissions bits

What is the problem you are having with rclone?

rclone mount isn't preserving POSIX permissions bits

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

rclone v1.63.1

  • os/version: darwin 13.2 (64 bit)
  • os/kernel: 22.3.0 (x86_64)
  • os/type: darwin
  • os/arch: amd64
  • go/version: go1.20.6
  • go/linking: dynamic
  • go/tags: cmount

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

rsync.net via SFTP

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

rclone mount snow: ~/test --cache-dir ~/cache --vfs-cache-mode full --vfs-cache-max-size 100G --daemon

The rclone config contents with secrets removed.

type = sftp
host = de2926.rsync.net
user = de2926
key_use_agent = true
shell_type = unix
md5sum_command = md5 -r
sha1sum_command = sha1 -r

A log from the command that you were trying to run with the -vv flag

no log

got an email from support saying rclone supports POSIX permissions (which is a relief because my searching around indicates otherwise.)

i'm mounting it on a mac os x filesystem (which is also POSIX) from a linux filesystem via SFTP (which supports POSIX permissions).

but when i stat the mounted file - i'm not getting the correct POSIX permissions.... :frowning:


From the rclone documentation, I see that the file "mode" (unix permission bits) is among the metadata rclone acknowledges.

The documentation also states:

The goal of the implementation is to

  1. Preserve metadata if at all possible
  2. Interpret metadata if at all possible

But even when I launch with --metadata, I'm not seeing the correct file "mode". Is this a known bug?

Have a look at remotes' features list and you will see that metadata is only preserved for S3, Internet Archive and local remotes. It is not for SFTP - you can only assume that mtime is preserved.

well that sucks. also seems like an odd choice, given that both rsync and sshfs support file mode. any idea why rclone decided not to?

hmm... i'm looking at the code for the vfs - it looks like it entirely ignores any metadata when specifying the file's mode. can anyone confirm this? i'd rather not move over to S3 and find it's no better than SFTP.

Just lack of dev time!

It doesn't use the metadata yet either :frowning:

It would be relatively simple to add and very useful, but I haven't got round to it yet!

here's a question - is there a bounty system for rclone? i'd be willing to put some $$$ toward implementing these two features. i suspect i'm not alone.

1 Like

Yes, you can sponsor anything you like, not quite exactly like a bounty, but in the realm of what you are asking.

If you are working on behalf of a company you might be interested in taking out a support contract which can help you get answers quicker and we could do some or all of this work as part of and keeps the rclone project sustainable.

As for individual bounty things, I was looking at https://polar.sh which is a pledge system for issues - what do people think of that?

1 Like

heh... no company here. i have an etsy show that sells 3d printed snow globes. :slight_smile:

i'll look at polar. i also just sent you an email.



1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.