X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.8 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_RW
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <CAASm4edQ4-Bz-TFzKZMBub81yQJx=qJ-Efn+ZB_mYT=HFJf0qg@mail.gmail.com>
References: <CAASm4ee7qAYUg-Coo46HmPQM2PbqjDj5oKyJC-CROj9Ew1wwCw@mail.gmail.com>	<4FA91E73.1000408@gmail.com>	<CAASm4edQ4-Bz-TFzKZMBub81yQJx=qJ-Efn+ZB_mYT=HFJf0qg@mail.gmail.com>
Date: Tue, 8 May 2012 16:44:01 +0300
Message-ID: <CAASm4ecqn2Cn=PG5B-KJfW3trzVWt4XHEjYJnwD7+BAEq_Mn+w@mail.gmail.com>
Subject: Re: Zip file extraction permissions help
From: Assaf <assafl1616@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q48DiZC5014384

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


