delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/24/10:23:24

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=JnaubhCnJCa68uUqLPhbf9s0OvJi26Pfl7o2jnF5HBhldifWjOl8C
m0RaE5hONKqj8vVE4moGrF2BbqOykUbX9fnsSmgp7Ay0eBHm/d4zjzT6URatekR9
zZX5aYeZhhhYcnWrDl+n7xW0PtD1gKXnH7mdOjf6WUKxw7qbPEWY5Q=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=ab7ITloN3aENXBP67/r4pkWHUfc=; b=ajVEoXaAkMqqSuaQXQbBR40wwWvZ
QT7lLkSmvoDHcJrc4TaXlF53FsUPU18jdwopey81IH3pxGOdza3HMZ8xSupUYM+u
XFt8KSzJtxTP+B8ZC8/2hQ4rbFqOVzEjc21DCPgzm14oK7fPS20KvJPi6nDeNrmT
23iYwp1UGAVh/28=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Date: Thu, 24 Apr 2014 16:23:04 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: rm -f behavior
Message-ID: <20140424142304.GT2339@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <5358260B DOT 90807 AT obj-sys DOT com>
MIME-Version: 1.0
In-Reply-To: <5358260B.90807@obj-sys.com>
User-Agent: Mutt/1.5.21 (2010-09-15)

--PdAWLd+WEPmMbsbx
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

-----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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019