Web lists-archives.com

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:
>> Hi,
>> 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).

John Doe

Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple