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:
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:
--chmod=ugo=rwX
to give new files the destination-default permissions (while leaving existing files unchanged)