When I create a file on a windows server with cygwin the resulting file appears to be read-only. For example echo > hallo.txt
results in a file with these rights:
Path : Microsoft.PowerShell.Core\FileSystem::\\rh-data-s01\Abteilungen\Neue Medien\hallo.txt
FileSystemRights : WriteExtendedAttributes, ExecuteFile, DeleteSubdirectoriesAndFiles, ReadPermissions
AccessControlType : Deny
IdentityReference : NULL SID
IsInherited : False
InheritanceFlags : None
PropagationFlags : None
Path : Microsoft.PowerShell.Core\FileSystem::\\rh-data-s01\Abteilungen\Neue Medien\hallo.txt
FileSystemRights : Write, Delete, Read, ChangePermissions, TakeOwnership, Synchronize
AccessControlType : Allow
IdentityReference : S-1-15-3-1024-1065365936-1281604716-3511738428-1654721687-432734479-3232135806-4053264122-3456934681
IsInherited : False
InheritanceFlags : None
PropagationFlags : None
Path : Microsoft.PowerShell.Core\FileSystem::\\rh-data-s01\Abteilungen\Neue Medien\hallo.txt
FileSystemRights : ExecuteFile
AccessControlType : Deny
IdentityReference : S-1-5-32-4028125388-2803578072-1053907958-341417128-2434011155-477421480-740873757-3973419746
IsInherited : False
InheritanceFlags : None
PropagationFlags : None
Path : Microsoft.PowerShell.Core\FileSystem::\\rh-data-s01\Abteilungen\Neue Medien\hallo.txt
FileSystemRights : ReadAndExecute, Synchronize
AccessControlType : Allow
IdentityReference : S-1-5-32-4028125388-2803578072-1053907958-341417128-2434011155-477421480-740873757-3973419746
IsInherited : False
InheritanceFlags : None
PropagationFlags : None
Path : Microsoft.PowerShell.Core\FileSystem::\\rh-data-s01\Abteilungen\Neue Medien\hallo.txt
FileSystemRights : Read, Synchronize
AccessControlType : Allow
IdentityReference : Everyone
IsInherited : False
InheritanceFlags : None
PropagationFlags : None
On this file Windows suggest to "reorder" file permissions. I went through the posix permissions page but could not find a solution.
How do I create a file that can be access later on without having to fiddle with access rights?