public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Assaf <assafl1616@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Zip file extraction permissions help
Date: Tue, 08 May 2012 13:44:00 -0000	[thread overview]
Message-ID: <CAASm4ecqn2Cn=PG5B-KJfW3trzVWt4XHEjYJnwD7+BAEq_Mn+w@mail.gmail.com> (raw)
In-Reply-To: <CAASm4edQ4-Bz-TFzKZMBub81yQJx=qJ-Efn+ZB_mYT=HFJf0qg@mail.gmail.com>

I understand where comes the Administrators user in the /etc/passwd
after reading http://cygwin.com/cygwin-ug-net/ntsec.html

But still, I would like to get the same permissions when extracting a
file outside and inside cygwin by the same user, Administrator

On Tue, May 8, 2012 at 4:31 PM, Assaf Leibovitch <assafl1616@gmail.com> wrote:
> Hi Marco,
>
> How do I change the default behavior to match the Windows file creation policy?
>
> Why the files are owned by 'Administrators' when opened on Windows and
> by 'Administrator' when opened within Cygwin?
>
>
> Thanks
>
>
>
> On Tue, May 8, 2012 at 4:24 PM, marco atzeri <marco.atzeri@gmail.com> wrote:
>> On 5/8/2012 3:11 PM, Assaf Leibovitch wrote:
>>>
>>> Hello all,
>>>
>>> I have a zip file, when extracted from Windows, I see files with
>>> execute permissions:
>>>
>>> For example:
>>> -rwx------+ 1 Administrators None   2782 Apr  8 10:03 pyrunner.py
>>>
>>> When using Cygwin unzip, I get the following:
>>> -rw-rw-rw- 1 Administrator None   2782 Apr  8 10:03 pyrunner.py
>>>
>>> The owner is different (Administrators vs Administrator)
>>>
>>>
>>> What should I configure to handle this so the files will get the same
>>> permissions as I get when extracting from windows
>>>
>>>
>>> Thanks
>>
>>
>> the zip compression format has no data about the the file permissions,
>> so the result is just the default of windows and cygwin for file
>>  creation
>>
>> Regards
>> Marco
>>
>>
>> --
>> 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
>>

--
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:[~2012-05-08 13:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-08 13:11 Assaf Leibovitch
2012-05-08 13:24 ` marco atzeri
2012-05-08 13:31   ` Assaf Leibovitch
2012-05-08 13:44     ` Assaf [this message]
2012-05-10 11:05       ` Andrey Repin

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='CAASm4ecqn2Cn=PG5B-KJfW3trzVWt4XHEjYJnwD7+BAEq_Mn+w@mail.gmail.com' \
    --to=assafl1616@gmail.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).