Re: Permissions not set for 'other' when copying from Windows
- Date: Mon, 17 Dec 2018 16:21:36 +0100
- From: john doe <johndoe65534@xxxxxxxx>
- Subject: Re: Permissions not set for 'other' when copying from Windows
On 12/17/2018 1:15 PM, Corinna Vinschen wrote:
> On Dec 17 13:06, john doe wrote:
>> I'm trying to understand why a copied file from 'C:\' into
>> /home/user/try doesn't have the permissions set for 'other' (see below).
> POSIX "other" == Windows "Everyone". Windows default permissions
> typically don't give permissions to "Everyone". Thus POSIX "other"
> has no permissions by default after copying such a file.
Thank you, it works:
PS C:\> & icacls try.txt /grant "*S-1-1-0:(GA)"
The powershell way (set-acl) might be easier if you don't want to fiddle
with quoting and the call operator or simply use the command in cmd.exe
(no '&' and no quotes).
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple