Rclone rc mount showing wrong Directory Permission

What is the problem you are having with rclone?

After mounting vfs using rclone rc mount command the vfs/stat is showing wrong permission for Directory permission.

"opt": {
            "BlockNormDupes": false,
            "CacheMaxAge": 1800000000000000,
            "CacheMaxSize": 21474836480,
            "CacheMinFreeSpace": -1,
            "CacheMode": 3,
            "CachePollInterval": 60000000000,
            "CaseInsensitive": false,
            "ChunkSize": 536870912,
            "ChunkSizeLimit": -1,
            "DirCacheTime": 1800000000000000,
            **"DirPerms": 2147484157**,
            "DiskSpaceTotalSize": -1,
            "FastFingerprint": false,
            "FilePerms": 644,
            "GID": 1002,
            "NoChecksum": false,
            "NoModTime": false,
            "NoSeek": false,
            "PollInterval": 60000000000,
            "ReadAhead": 0,
            "ReadOnly": false,
            "ReadWait": 20000000,
            "Refresh": false,
            "UID": 1002,
            "Umask": 2,
            "UsedIsSize": false,
            "WriteBack": 5000000000,
            "WriteWait": 1000000000
    }

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

rclone v1.66.0

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 6.5.0-1021-oracle (aarch64)
  • os/type: linux
  • os/arch: arm64 (ARMv8 compatible)
  • go/version: go1.22.1
  • go/linking: static
  • go/tags: none

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

Onedrive

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

rclone rc --rc-addr=127.0.0.1:45250 --rc-user=nirzak --rc-pass=nirjas724! mount/mount fs=odrive: mountPoint=/plex vfsOpt='{"CacheMode": 3,  "DirCacheTime": 1800000000000000, "ChunkSize": 536870912, "ChunkSizeLimit": -1, "CacheMaxAge": 1800000000000000, "DirPerms": 755, "FilePerms": 644, "CacheMaxSize": 21474836480, "PollInterval": 60000000000}' mountOpt='{"AllowOther": true}'

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[dbox]
type = dropbox
token = XXX

[obox]
type = onedrive
client_id = XXX
client_secret = XXX
token = XXX
drive_id = XXX
chunk_size = 120M
drive_type = business

[odrive]
type = onedrive
token = XXX
drive_id = XXX
chunk_size = 120M
drive_type = business
### Double check the config for sensitive info before posting publicly

that is an old version, can rclone selfupdate and test again.

maybe "DirPerms": 755 should be "DirPerms": 0755

I have tried. it's 755 actually. 0755 gives error and also on the global option it's difined as 511 only the specific vfs mounts are showing the wrong permission.

Won't it might break my current configuration if the latest version has any changes for configurations?

and what is the point of investigating a bug in old rclone version? Maybe you are right and it was broken. But it is history:)

5 releases later is today... Rclone is relatively fast pace moving project, with tones of fixes and improvements in every new version.

Ok I updated to latest version and then kill and restart the rclone rc daemon and mounted again. it still gives the same wrong directory permission

"opt": {
"BlockNormDupes": false,
"CacheMaxAge": 1800000000000000,
"CacheMaxSize": 21474836480,
"CacheMinFreeSpace": -1,
"CacheMode": 3,
"CachePollInterval": 60000000000,
"CaseInsensitive": false,
"ChunkSize": 536870912,
"ChunkSizeLimit": -1,
"ChunkStreams": 0,
"DirCacheTime": 1800000000000000,
"DirPerms": 2147484157,
"DiskSpaceTotalSize": -1,
"FastFingerprint": false,
"FilePerms": 644,
"GID": 1002,
"LinkPerms": 134218164,
"Links": false,
"NoChecksum": false,
"NoModTime": false,
"NoSeek": false,
"PollInterval": 60000000000,
"ReadAhead": 0,
"ReadOnly": false,
"ReadWait": 20000000,
"Refresh": false,
"UID": 1002,
"Umask": 2,
"UsedIsSize": false,
"WriteBack": 5000000000,
"WriteWait": 1000000000
}

1 Like

Another thing I have seen that version 1.69 introduced a feature which I really wanted.

Add remote name to vfs cache log messages. but still the log messages are not showing the remote name. instead it's showing like this

2025/01/29 19:21:42 INFO : OneDrive root '': vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2025/01/29 19:22:26 INFO : OneDrive root '': vfs cache: cleaned: objects 16 (was 16) in use 0, to upload 0, uploading 0, total size 0 (was 0)

which really confusing If I have two remote configuration running for onedrive at the same time.

converting 2147484157 to octal = 20000000775

converting 13421816 to octal = 1000000664

OK I see. that means on VFS we have to use octal value instead of integer value. Got it.

Now this is very confusing. every files from my mount has been mounted with the following permission. that means it didn't take FilePerms: 644 at all. so what is the correct value for this?