X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 25 Mar 2010 14:02:07 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Cygwin 1.7.1 breaks git on netapp shared drives Message-ID: <20100325130207.GH7718@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <608157 DOT 47595 DOT qm AT web110616 DOT mail DOT gq1 DOT yahoo DOT com> <747800 DOT 43893 DOT qm AT web110615 DOT mail DOT gq1 DOT yahoo DOT com> <20100324091522 DOT GS32321 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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 On Mar 25 07:17, Steve Bray wrote: > On 03/24/2010 04:15 AM, Corinna Vinschen wrote: > >On Mar 23 16:37, Chris Idou wrote: > >> > >> > >>After a heck of lot of screwing around, I got this mount point stuff working. Now when I create files under cygwin they have the same permissions profile as they do when I create them under windows. > >> > >>BUT... > >> > >>git doesn't work still. It fails with the exact same error of "unable to set permission". How do the cygwin APIs work under noacl? They shouldn't ever return error code should they? > > > >They should. There's the one case in which you're trying something like > >chmod 444. Under noacl conditions this sets the DOS R/O attribute. If > >that fails, the call fails. > > > > > >Corinna > > > In my original post I acknowledged that we can not make NTFS ACLS > exactly match POSIX behavior. The best that we can do is consider > the impact of our choices. > > The cygwin 1.5 behaviour often failed to report chmod failures but > many of us have been happily using cygwin for a long time and never > noticed. Cygwin 1.5 chmod already failed if ntsec was set and changing the ACL failed. You probably didn't realize it because "nosmbntsec" was the default for remote drives. > With cygwin 1.7 the trade-offs in handling NTFS ACLS were changed. > chmod failures are now reported but now chmod fails unless the user > has NTFS ACLS that support changing permissions. All of the Windows > shared drives, that are secured, do not give users permission to > change permissions on the files that they create and own. This does Which is bad by design. Permissions on shares should be set in the ACLs of the remote drive, not by mis-using a badly designed sharing permission model. Anyway, you can use "noacl" on a by-share base. That's even better than in 1.5. > In our case we still had permissions on our shared drive to write > attributes and extended attributes. In any case, after mounting > with noacl git can change the RO flag and is functional. > > I was not able to test a condition that blocked changing the RO flag. > I removed ACLS for write attibutes, write extended attributes (and > change permissions) but chmod and git were still able to set the > files RO. My permissions might be leaking through in some way. I > have only one account and limited permissions to do much > investigation. > > If Chris is in an organization that removes permission to change > either ACLS or the RO flag, then how does he use cygwin and git? He should put that to the admins. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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