From owner-freebsd-questions Sun Oct 25 22:19:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA05875 for freebsd-questions-outgoing; Sun, 25 Oct 1998 22:19:14 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ds9.dreamhaven.org (dt091n3e.san.rr.com [204.210.47.62]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id WAA05868 for ; Sun, 25 Oct 1998 22:19:12 -0800 (PST) (envelope-from data@dreamhaven.net) Received: (qmail 21915 invoked by uid 1010); 26 Oct 1998 06:18:37 -0000 Date: Sun, 25 Oct 1998 22:18:37 -0800 (PST) From: Bryce Newall X-Sender: data@ds9.dreamhaven.org To: Brian Tiemann cc: freebsd-questions@FreeBSD.ORG Subject: Re: Can't delete files as root? 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 On Sun, 25 Oct 1998, Brian Tiemann wrote: > rm: aout/usr/src/tmp/usr/lib/aout/libc.so.3.1: Operation not permitted > rm: aout/usr/src/tmp/usr/lib/aout/libc_r.so.3.0: Operation not permitted > > -r--r--r-- 1 root wheel 493850 Oct 19 12:39 libc.so.3.1 > -r--r--r-- 1 root wheel 547350 Oct 19 12:39 libc_r.so.3.0 > > So how come I can neither chmod nor remove these files, even as > root? The schg flag is set on those files, which means you can't make changes to them (including deleting them). There's an ls option to see those flags, but I can't remember it. :) In any case, "chflags noschg " will solve your problem. Do that, and you'll be able to delete those files. ********************************************************************** * Bryce Newall * Email: data@dreamhaven.net * * WWW: http://home.dreamhaven.net/~data * * "Insanity takes its toll. Please have exact change." * ********************************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message