If you open permissions on file/folder and get this message:
Permissions Are Incorrectly Ordered
And if you list files in cygwin and the user:group looks like this:
[waste@server /cygdrive/e/folder_with_bad_permissions]# ll total 172K drwxr-x---+ 1 Unknown+User Unknown+Group 0 Jun 17 2013 folder_a/ drwx------+ 1 Unknown+User Unknown+Group 0 Aug 12 2014 folder_b/ drwxr-x---+ 1 Unknown+User Unknown+Group 0 Mar 4 2010 folder_c/ drwxr-x---+ 1 Unknown+User Unknown+Group 0 Nov 12 2010 folder_d/
You can open a
cmd window with administrative privileges and then run the following command:
takeown /r /f e:folder_with_bad_permissions /r - recursive /f - file
Manual page for the takeown.exe command.
Note Cygwin was notorious for creating folders with this issue so it may have happened if you inherited a drive with folders created by Cygwin which doesn’t have a correct maping to users on this drive.
After getting ownership you should be able to open Windows Explorer, right click on the folder, open the Security Tab and change permissions at will.