On one Windows 10 PC, when I create a file from a Cygwin bash shell, the Windows security settings for the file are corrupted.
So, for example, if I type
echo test > test.txt, when I bring up the “Properties” → “Security” tab in Windows, I get the following error message: "The permissions on test.txt are incorrectly ordered, which may cause some entries to be ineffective", and (among other issues) I see in the “Group or user names” list box "NULL SID". And when I click on the “Advanced” button, I see several group entries with the "Deny" type. This seems to happen no matter how I create a file. I have tried
bzip2 and have the same issue.
This is a local NTFS hard drive. The folder permissions are correct and I am a local admin on the PC.
I have another Windows 10 PC with Cygwin, running the same bash script, and it works fine.