From owner-freebsd-questions@FreeBSD.ORG Mon Apr 23 07:12:54 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 8F2E516A401 for ; Mon, 23 Apr 2007 07:12:54 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 7EF6113C45E for ; Mon, 23 Apr 2007 07:12:54 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 38CCA1A4DB4; Mon, 23 Apr 2007 00:13:16 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id EAE7551583; Mon, 23 Apr 2007 03:12:53 -0400 (EDT) Date: Mon, 23 Apr 2007 03:12:53 -0400 From: Kris Kennaway To: Don O'Neil Message-ID: <20070423071253.GA74834@xor.obsecurity.org> References: <000b01c78574$86182ba0$0300020a@mickey> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000b01c78574$86182ba0$0300020a@mickey> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2007 07:12:54 -0000 On Sun, Apr 22, 2007 at 11:56:31PM -0700, Don O'Neil wrote: > 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? It's unlikely to be due to the uid/gids, do a ls -lo to check for the schg flag (man chflags). Kris