1
I swiched to a new box at work and copied over my whole cygwin folder via rsync
from the old box to the new one.
But now if I do touch tmp
, the file gets 060
permissions and not 644
like before.
This is very disturbing, as not even cat <<<foo
works but errors out with bash: cannot create temp file for here-document: Permission denied
.
Which parameters did you use for
rsync
? By default, file permissions are not preserved. – Eugen Rieck – 2016-08-19T12:43:07.513rsync -avh --progress ...
so yes, permissions are preserved. Also I'm not complaining about the permissions of existing files, but newly created ones. Existing files are fine – Vampire – 2016-08-19T12:46:27.820To sanitize the ACLs, a
– phau – 2017-02-10T21:23:00.943-b
switch was added to setfaclsetfacl -b foo
see http://superuser.com/a/1092296