1

After copying files from Ubuntu to Windows using rsync on ssh, the copied files and folder have permissions that only creator have full access and other users including SYSTEM and Administrators have only special permissions.

Root folder permissions:

Root folder permissions

Sometimes other users can't open or copy the files. When opening Properties ➝ Security for the files/folders received message "The permissions on <file/folder name> are incorrectly ordered, which may cause some entries to be ineffective"

Only after running the command icacls "<path to the folder where stored problematic files>" /reset /T /C , other users can use the files/folders correctly

Ubuntu machine: Ubuntu 20.04.6 LTS (GNU/Linux 5.10.120-tegra aarch64) Windows machine: Windows 11 pro. OS build: 22557.1 On windows installed rsync using cygwin Rsync versions on Ubuntu: 3.1.3 Rsync version on Windows(cygwin): 3.3.0

Rsync command rsync -avz -e ssh /path/to/test_folder user@windows machine:/cygdrive/d/test_folder

Permissions of copied file link:

link

Permissions on Ubuntu: enter image description here

Permissions on Windows after copying enter image description here

Permissions on Windows after reset to default enter image description here

10
  • What is the permissions of the root folder containing the files and folders you are transferring? Provide screenshots for clarity purposes.
    – Ramhound
    Commented Jun 19 at 13:16
  • 3
    Why are you using Cygwin instead of configuring OpenSSH which is built-into Windows as an optional windows feature? It seems your issues are connected to Cygwin.
    – Ramhound
    Commented Jun 19 at 13:19
  • @Ramhound Added screenshots. I'm using Cygwin for rsync. rsync should be installed on 2 machines to copy files over ssh.
    – VladE
    Commented Jun 19 at 13:45
  • 1
    You can try adding --chmod=ugo=rwX to give new files the destination-default permissions (while leaving existing files unchanged)
    – Cpt.Whale
    Commented Jun 19 at 13:53
  • It doesn't work
    – VladE
    Commented Jun 19 at 13:54

0

You must log in to answer this question.

Browse other questions tagged .