From owner-freebsd-questions Thu Mar 26 01:52:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA11021 for freebsd-questions-outgoing; Thu, 26 Mar 1998 01:52:48 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from python.shoal.net.au (perrya@python.shoal.net.au [203.26.44.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA11000 for ; Thu, 26 Mar 1998 01:52:39 -0800 (PST) (envelope-from perrya@python.shoal.net.au) Received: from localhost (perrya@localhost) by python.shoal.net.au (8.8.6/8.8.5) with SMTP id TAA15259; Thu, 26 Mar 1998 19:51:44 +1000 (EST) Date: Thu, 26 Mar 1998 19:51:44 +1000 (EST) From: Andrew To: David Kott cc: freebsd-questions@FreeBSD.ORG Subject: Re: Cannot rm a file, even as "root", under -stable In-Reply-To: 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 man chflags You need to remove the schg flag I think. Andrew Perry > > I am really perplexed. I just cannot seem to delete the file /usr/chfn. > Here is a dialog of my embrassingly ignorant attempts: > > root@kott [/usr/bin]# rm chfn > override r-sr-xr-x root/bin schg for chfn? y > rm: chfn: Operation not permitted > root@kott [/usr/bin]# chmod u+w chfn > chmod: chfn: Operation not permitted > root@kott [/usr/bin]# chown root:wheel chfn > chown: chfn: Operation not permitted > root@kott [/usr/bin]# whoami > root > root@kott [/usr/bin]# groups > wheel kmem sys tty operator bin staff guest > root@kott [/usr/bin]# mount | grep "/usr" > /dev/wd2s1e on /usr (local, noatime) > root@kott [/usr/bin]# lsof | grep chfn > root@kott [/usr/bin]# > > Can someone.. anyone...give me, or perhaps lend me a clue on how to > remove this pesky file? I think I failed to renew my clue subscription... > > I am running: > > FreeBSD FreeBSD 2.2.6-BETA #0: Sun Mar 22 22:44:22 EST 1998 > > > Ignorantly yours, > -d > > > > > > > > > > > > > > The Fourth Law of Programming: > > Anything that CAN go wrong wi > /kernel: pid 128 (sendmail), uid 0: exited on signal 11 (core dumped) > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message