From owner-freebsd-questions Sun Mar 8 18:53:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA01650 for freebsd-questions-outgoing; Sun, 8 Mar 1998 18:53:25 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dt050ndd.san.rr.com (dougdougdougdoug@dt050ndd.san.rr.com [204.210.31.221]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA01635 for ; Sun, 8 Mar 1998 18:53:16 -0800 (PST) (envelope-from Studded@dal.net) Received: from localhost (dougdougdougdoug@localhost) by dt050ndd.san.rr.com (8.8.8/8.8.8) with SMTP id CAA05726 for ; Mon, 9 Mar 1998 02:53:10 GMT (envelope-from Studded@dal.net) Date: Sun, 8 Mar 1998 18:53:07 -0800 (PST) From: Studded X-Sender: dougdougdougdoug@dt050ndd.san.rr.com To: FreeBSD-questions@FreeBSD.ORG Subject: Weirdness with rm Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is something I've always wondered about, but didn't have a chance to ask. :) If I try to rm a file that I don't have permissions for, rm first asks me if I want to override, then tells me that it can't delete the file anyway. I realize that there are situations where rm does override permissions, but it seems to me that if it can't override the permissions anyway, the two checks are superfluous. Is there some reason that rm wouldn't do the "absolute" check before it asks if I want to override the perms? Here is an example: 73$ rm *.DIST override rw-r----- root/bin for rc.conf.5.DIST? y rm: rc.conf.5.DIST: Permission denied Curious, Doug -- *** Chief Operations Officer, DALnet IRC network *** *** Proud operator, designer and maintainer of the world's largest *** Internet Relay Chat server. 5,328 clients and still growing. *** Try spider.dal.net on ports 6662-4 (Powered by FreeBSD) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message