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

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

  reply	other threads:[~2018-12-17 15:21 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 [this message]
2018-12-17 15:46     ` Corinna Vinschen

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=710e2dea-09c3-36bd-5266-fed728228cc9@mail.com \
    --to=johndoe65534@mail.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).