From owner-freebsd-questions@FreeBSD.ORG Mon Apr 23 09:16:07 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E78AD16A40A for ; Mon, 23 Apr 2007 09:16:07 +0000 (UTC) (envelope-from beech@alaskaparadise.com) Received: from stargate.alaskaparadise.com (7-137-58-66.gci.net [66.58.137.7]) by mx1.freebsd.org (Postfix) with ESMTP id 0DD2213C455 for ; Mon, 23 Apr 2007 09:16:06 +0000 (UTC) (envelope-from beech@alaskaparadise.com) Received: from localhost (localhost [127.0.0.1]) by stargate.alaskaparadise.com (Postfix) with ESMTP id D8AD17FC8; Mon, 23 Apr 2007 01:16:05 -0800 (AKDT) From: Beech Rintoul Organization: FreeBSD Port Maintainer To: freebsd-questions@freebsd.org, don@buylv.com Date: Mon, 23 Apr 2007 01:16:00 -0800 User-Agent: KMail/1.9.6 References: <000901c78574$5f1990c0$0300020a@mickey> In-Reply-To: <000901c78574$5f1990c0$0300020a@mickey> X-Face: jC2w\k*Q1\0DA2Q0Eh&BrP/Rt2M,^2O#R07VoT98m*>miQF9%Bi9vy`F6cPjwEe?m,)=?utf-8?q?2=0A=09X=3FM=5C=3AOE9QgZ?="xT3/n3,3MJ7N=Cfkmi%f(w^~X"SUxn>; 27NO; C+)g[7J`$G*SN>{<=?utf-8?q?O=3Bg7=7C=0A=09o=7D=265A=5D4?=@7D`=Eb@Zs1Ln814?]|k@'bG=.Ca"[|8+_.OsNAo8!#?4u MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704230116.02849.beech@alaskaparadise.com> Cc: Subject: Re: Unable to delete files/directories - bogus user/group ID's X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: beech@alaskaparadise.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2007 09:16:08 -0000 On Sunday 22 April 2007, Don O'Neil said: > I had a crash on a disk array last week that was severe enough that > fsck wouldn't fix it, even in single user mode. So, I was forced to > suck off the good data, and restore the bad stuff from backups. > > However there are 2 directories that contain files/directories > which have bogus user & group ID's that the system just won't let > me do anything to. I can delete them, cant rename them, cant move > them, cant chmod/chown, cant cat to them, nothing... I just get > "Operation not permitted". > > Here's a sample of one of them: > > ---xr----x 1 2761022747 1016642816 0 Apr 19 15:35 Video > d--s---rw- 2 3251161791 726015594 512 Apr 19 15:41 .shrc > > Anyone have any ideas on how to get rid of these files? > > I've done an fsck from single user mode and that doesn't come up > with anything. Short of copying all the data over to a new volume > sans these files and then reformatting the old volume and then > moving the good files back what can I do? > > Any assistance would be appreciated. I'd also like to thank > everyone who browses this group and regularly posts responses... > Without you guys some of us would never get the help and knowledge > we need! Thanks in advance! Try doing: chflags -R noschg directory or chflags noschg file See: man(1) chflags Beech -- --------------------------------------------------------------------------------------- Beech Rintoul - Port Maintainer - beech@alaskaparadise.com /"\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.freebsd.org/releases/6.2R/announce.html ---------------------------------------------------------------------------------------