Hi all,
I would like to use rsync with a password file so I can execute it from a 
script without having to type in the password interactively:

   rsync --password-file foo.pwd ...
Obviously, I would like to change the permissions of foo.pwd to be readable 
only by myself:
$ chmod go-r foo.pwd
(As a matter of fact, rsync will not even accept a password file readable by 
group or world.) Unfortunately, chmod does not have the desired effect:
$ ls -al foo.pwd-r--r--r-- 1 oland oland 12 23. Apr 11:52 foo.pwd
I did a little bit of research and it seems that the problem is due to the fact 
that MSYS2 mounts drives with the "noacl" option:
$ mountC:/msys64 on / type ntfs (binary,noacl,auto)C:/msys64/usr/bin on /bin 
type ntfs (binary,noacl,auto)C: on /c type ntfs 
(binary,noacl,posix=0,user,noumount,auto)D: on /d type ntfs 
(binary,noacl,posix=0,user,noumount,auto)E: on /e type ntfs 
(binary,noacl,posix=0,user,noumount,auto)J: on /j type ntfs 
(binary,noacl,posix=0,user,noumount,auto)X: on /x type smbfs 
(binary,noacl,posix=0,user,noumount,auto)Z: on /z type smbfs 
(binary,noacl,posix=0,user,noumount,auto)
I have tried removing the noacl option from /etc/fstab, but this change had no 
impact on the mount points "/" and "/bin". The file I am trying to change the 
settings of is located somewhere under "/home". Anyway, from what I googled, 
the "noacl" options seems to have been set for good reasons and it may not be a 
great idea to remove it.
I have tried changing the permissions on the file from within Windows Explorer. 
I edited the security properties of the file in that I disabled inheritance of 
security properties for the file and added myself as the only entry in the list 
of group- or usernames, giving myself permission to read and write the file. In 
a new MSYS2 shell, I checked the permissions again with the following outcome:
$ ls -al foo.pwd-r--r--r-- 1 oland oland 12 23. Apr 11:52 foo.pwd
Does anybody know how to change file permissions so that MSYS2 will see the 
file as readable only by myself?
Cheers,Oliver
P.S: I have installed MSYS2 as distributed in file msys2-x86_64-20161025.exe, 
then updated it using "pacmac -Syuu".

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to