Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Mar 2000 08:17:59 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        "J. W. Ballantine" <jwb@homer.att.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Immutable files (was: Re: root not root??)
Message-ID:  <20000301081759.T21720@fw.wintelcom.net>
In-Reply-To: <200003011531.KAA09053@akiva.homer.att.com>; from jwb@homer.att.com on Wed, Mar 01, 2000 at 10:31:33AM -0500
References:  <200003011531.KAA09053@akiva.homer.att.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* J. W. Ballantine <jwb@homer.att.com> [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.

-Alfred


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000301081759.T21720>