public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Permissions not set for 'other' when copying from Windows
Date: Mon, 17 Dec 2018 15:46:00 -0000	[thread overview]
Message-ID: <20181217154537.GA28727@calimero.vinschen.de> (raw)
In-Reply-To: <710e2dea-09c3-36bd-5266-fed728228cc9@mail.com>

[-- Attachment #1: Type: text/plain, Size: 809 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2018-12-17 15:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-17 12:06 john doe
2018-12-17 12:16 ` Corinna Vinschen
2018-12-17 15:21   ` john doe
2018-12-17 15:46     ` Corinna Vinschen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181217154537.GA28727@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).