From owner-freebsd-current Mon Jun 23 16:22:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA07503 for current-outgoing; Mon, 23 Jun 1997 16:22:42 -0700 (PDT) Received: from helmholtz.salk.edu (helmholtz.salk.edu [198.202.70.34]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA07493 for ; Mon, 23 Jun 1997 16:22:38 -0700 (PDT) Received: from pauling.salk.edu (pauling [198.202.70.108]) by helmholtz.salk.edu (8.7.5/8.7.3) with SMTP id QAA11719 for ; Mon, 23 Jun 1997 16:22:38 -0700 (PDT) Date: Mon, 23 Jun 1997 16:22:35 -0700 (PDT) From: Tom Bartol To: current@freebsd.org Subject: Bad bug in /usr/bin/install?! Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi all, I just had the following happen to me in -current and it may be a bug in /usr/bin/install (or it might be me and my Dain Bramage). I just did the following as myself (i.e. not as root): /usr/bin/install -c -s -m 2755 -g kmem xsysinfo /usr/X11R6/bin/xsysinfo Trying to remake and install a fresh version of xsysinfo. The command failed as expected with an "Operation not permitted" but the pre-existing version of xsysinfo was deleted in the process as well!!! I am in group wheel on my system but the pre-existing version of xsysinfo was owned by root.kmem and the permissions on the dir /usr/X11R6/bin are 775 for root.wheel so I guess technically I could delete any file in /usr/X11R6/bin if I wanted to but it's rather nasty that /usr/bin/install deletes a file before checking whether I have permission to perform the other operations that must occur to honor my request to install a file. Or am I just being picky?? (P.S: when I rm a file in /usr/X11R6/bin I at least get prompted "override rw-r--r-- root/wheel for foo_bar?" ) Thanks in advance for flaming my ignorance, Tom