From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21715 invoked by alias); 24 Apr 2014 14:23:08 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 21694 invoked by uid 89); 24 Apr 2014 14:23:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 24 Apr 2014 14:23:06 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 4EF7E8E142F; Thu, 24 Apr 2014 16:23:04 +0200 (CEST) Date: Thu, 24 Apr 2014 14:23:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: rm -f behavior Message-ID: <20140424142304.GT2339@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <5358260B.90807@obj-sys.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PdAWLd+WEPmMbsbx" Content-Disposition: inline In-Reply-To: <5358260B.90807@obj-sys.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-04/txt/msg00541.txt.bz2 --PdAWLd+WEPmMbsbx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1137 On Apr 23 16:43, Douglas Coup wrote: > I run Cygwin on a Windows 8.1 workstation. >=20 > I just recently started noticing that the following sequence doesn't work: >=20 > $ touch dac.txt > $ chmod 444 dac.txt > $ rm -f dac.txt >=20 > The rm -f command gets a permission denied error. This just started > happening recently, and I'm thinking it's because of an update to > Windows. >=20 > If I do chmod u+w dac.txt before the rm -f command, then the command work= s. >=20 > The same sequence executed on a different machine that runs Windows > 7 and hasn't been updated in a while works fine. And it used to > work fine on my workstation. >=20 > Is anyone else seeing this behavior? Not me. Are you sure you're using Cygwin's rm and chmod? Could this be related to parent directory permissions? The problem would be in Cygwin if that happens, but I tested this on a fully updated Windows 8.1 in 32 and 64 bit. Does an `strace -o rm.trace rm dac.txt' give a clue in rm.trace? Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --PdAWLd+WEPmMbsbx Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTWR5IAAoJEPU2Bp2uRE+gZcwP/3tz0zOQNFqKc2inVvaI1UgJ LVSDQAlZEDhdMiaXJfkS3hvxwuesw9hpDaLPbC6CaBtWIixQ9yFp3dy/M2scP7TA MWZh1te/UvcRVEzKQUkkyyAmQe+ak73eDkP65PmlAIAnPKQOhmpvSCk5epVeoqbm kiLhlAc3almL8wKKYHAsTlm35ke2ztNyeb4Z66CRgGvhuvvfxdI7m/DuNEZKnBUn 67RrGgzmH4qpeYlZjEUYulb+I9FTuaJghr4i7nfAYYcKJsexqmodugV/sIko38Hc o0TJVamG0XJRx1X79SpDZGSzpI5YCpCu1clFok1fQus2h1/DPJuUWUi89UIz7oHa tBYl4dvooBNJ/jJEUWPYqCBP0e1K0DV6izStcFffr64hHY32pz9XhHg/jvHDkVjL 6iTytboFNfZ7WApIN5jLnqL+Tbi3x9T4b4YkL4m82jIw/f3LoAGQrWIgr35QDPxp qVgPTwJH9qfZo0CQ4vWNEVeBhrtX9lpKZ5FPoyAD9drN5vPWCdI/0oXLMZwBX9b5 wGoTRbi3Ig5Zwbdt3Gl86UxQgtlMots6Iz/qZRpZqAnA3HIkVAru1ThOtqRwzm+B 0cGbCTppIkimbKr9ZLH2dd4T0v+i5UyQ5/ibwQXFPy0CNR6rUJAXM4Za+1L1NZ13 jrK3qgTSd8ZSy66iWj9K =AlZl -----END PGP SIGNATURE----- --PdAWLd+WEPmMbsbx--