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.

Vampire
  • 303

3 Answers3

2

It seems this was an issue with the NTFS permissions. I also was not able to access the folders via Windows Explorer. After fixing the Windows permissions it works now as expected.

Vampire
  • 303
0

New files get permissions according to set umask. Do umask 022 for example and try again.

Matija Nalis
  • 2,721
0

When using rsync a problem might be if the user on the old computer doesn't exist on the new one. In this case you might get the files saying that the user is the one on the old machine or the user is nobody. If this happens you might not have the permissions on your user to edit/modified (or even access) the synchronized data.