Ignoring remote permissions in rclone sync

What is the problem you are having with rclone?

TLDR: I would like rclone sync to ignore the permissions reported by an SFTP remote, and instead just create files and directories with 0666 and 0777 respectively (minus my umask).

I am using rclone sync to sync files from a Windows remote to a Linux local. Sometimes, rclone creates directories in the local destination with mode 0555 (I guess the Windows implementation of OpenSSH must be doing some magic mapping from Windows ACLs to Unix permission bits). Then, if a file within that directory changes later, rclone can’t update it because it doesn’t have write permission to the directory. I don’t need permissions, and copying them from Windows doesn’t really achieve anything useful. Ideally rclone would ignore the permissions the remote reports, but I can’t find an option to do that.

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

rclone 1.74.2

  • os/version: gentoo 2.18 (64 bit)
  • os/kernel: 6.18.37-gentoo-r1 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.26.3-X:nodwarf5
  • go/linking: dynamic
  • go/tags: none

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

Remote is a Windows computer accessed via SFTP.

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

rclone sync --delete-excluded --filter-from=/home/me/rcfiles/windowscomputer.filters --progress --verbose windowscomputer:/C:/Users /home/me/windowscomputer-staging

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

[windowscomputer]
type = sftp
ssh = ssh windowscomputer
known_hosts_file = /dev/null
shell_type = powershell
encoding = Raw
md5sum_command = &{param($Path);Get-FileHash -Algorithm md5 -LiteralPath $Path -ErrorAction Stop|Select-Object -First 1 -ExpandProperty Hash|ForEach-Object{"$($_.ToLower())  ${Path}"}}
sha1sum_command = &{param($Path);Get-FileHash -Algorithm sha1 -LiteralPath $Path -ErrorAction Stop|Select-Object -First 1 -ExpandProperty Hash|ForEach-Object{"$($_.ToLower())  ${Path}"}}

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

I don’t have this available right now, but can recreate a test case if it’s important.