Web lists-archives.com

Re: Permissions not set for 'other' when copying from Windows




On Dec 17 16:21, john doe wrote:
> 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)"

Just FTR: You can do this in Cygwin the POSIX way:

  chmod o+r try.txt

combined with -R for recursive tasks and with find(1) loops for more
complex scenarios.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

Attachment: signature.asc
Description: PGP signature