X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 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: <4FA91E73.1000408@gmail.com> References: <4FA91E73 DOT 1000408 AT gmail DOT com> Date: Tue, 8 May 2012 16:31:08 +0300 Message-ID: Subject: Re: Zip file extraction permissions help From: Assaf Leibovitch To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q48DVUZn012937 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 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