X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <906049.55360.qm@web25501.mail.ukl.yahoo.com> Date: Sat, 25 Sep 2010 12:52:10 +0000 (GMT) From: Marco Atzeri Subject: Re: 1.7.7(0.230/5/3) - Cannot change mode of file, and other permission issues on a Windows fileshare To: cygwin AT cygwin DOT com In-Reply-To: <20100924162826.GA25401@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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 --- Ven 24/9/10, Corinna Vinschen ha scritto: > On Sep 24 08:49, Keith Christian > wrote: > > > Does a call to chmod fail as well? =A0If so, can > you create an strace of > > > such a chmod, like this: > > > > > > =A0$ touch foo > > > =A0$ strace -o chmod.trace chmod 444 foo > > > > > > and send the chmod.trace file to the list? > >=20 > >=20 > >=20 > > Thanks, Corinna, > >=20 > > Yes, I receive "chmod: changing permissions of `foo': > Permission > > denied" when executing chmod 444 foo. >=20 > Here's the problem: >=20 > fhandler_base::open: C0000022 =3D NtCreateFile (0x0, E0100, > \??\Z:\foo, io, NULL, 0, 7, 1, 4000, NULL, 0) >=20 > Cygwin tries to open the file for writing the control > information > requesting WRITE_DAC and WRITE_OWNER access, but the remote > filesystem > refuses the request with an "Access denied" status code. >=20 > I was going to say that we can't do anything against that, > but then > it occured to me that this isn't quite right.=A0 > Actually we don't > need WRITE_OWNER access for the chmod functionality, so > it's perhaps=20 > still possible to call chmod on that remote filesystem if > cygwin omits > the WRITE_OWNER access flag when opening the file. >=20 > I applied a tiny patch to Cygwin, which only requests > WRITE_DAC, not > WRITE_OWNER in calls to chmod.=A0 Please test the next > developer's > snapshot from http://cygwin.com/snapshots/ and see if > it fixes your > problem.=A0 If you still get "Permission denied", it's > actually a problem > of the server which doesn't allow to change the ACL of a > file via the > share for some reason. >=20 >=20 > Corinna >=20 I noticed on XP SP2, Xserver (1.8.2) crashing on=20 start with snapshot 20100924 while it runs fine=20 with 20100923. Anyone noticed the same ? Usual invocation from Menu: C:\cygwin2\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin.exe 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