From owner-freebsd-questions Wed Mar 1 7:58: 2 2000 Delivered-To: freebsd-questions@freebsd.org Received: from relay.ucb.crimea.ua (UCB-Async4-CRISCO.CRIS.NET [212.110.129.130]) by hub.freebsd.org (Postfix) with ESMTP id 366C037BA81 for ; Wed, 1 Mar 2000 07:57:17 -0800 (PST) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.3/8.9.3/UCB) id RAA23737; Wed, 1 Mar 2000 17:56:41 +0200 (EET) (envelope-from ru) Date: Wed, 1 Mar 2000 17:56:41 +0200 From: Ruslan Ermilov To: "J. W. Ballantine" Cc: freebsd-questions@FreeBSD.org Subject: Re: Immutable files (was: Re: root not root??) Message-ID: <20000301175641.A18996@relay.ucb.crimea.ua> Reply-To: questions@FreeBSD.org Mail-Followup-To: "J. W. Ballantine" , freebsd-questions@FreeBSD.org References: <200003011531.KAA09053@akiva.homer.att.com> <20000301081759.T21720@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000301081759.T21720@fw.wintelcom.net>; from Alfred Perlstein on Wed, Mar 01, 2000 at 08:17:59AM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 01, 2000 at 08:17:59AM -0800, Alfred Perlstein wrote: > * J. W. Ballantine [000301 08:07] wrote: > > > > Hi all, > > > > I'm running 3.4-STABLE #4. > > > > I have a partition that originally was mounted as /usr. But when I added > > another disk, in order to get more space I created another partition for > > /usr and I'm now mounting the old usr part. on another mount point (/foo). > > > > Now I want to use the space on /foo, so I'm trying to rm all the old files, > > but there are some that are r-sr-xr-x that I can't rm. When I become root, > > either via, logging in as root or booting in single user mode, and I > > try to chmod u-s file, I get the message Operation not permitted. > > > > What do I have to do, short of reformating the part., to rm these files?? > > The files are marked immutable, you must use 'chflags' to remove the > bit before you can rm. > Directories affected as well, of course. `ls -ol' is your friend. -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message