From owner-freebsd-questions Wed Feb 13 13:55:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.panix.com (mail1.panix.com [166.84.0.212]) by hub.freebsd.org (Postfix) with ESMTP id 0494237B400 for ; Wed, 13 Feb 2002 13:55:15 -0800 (PST) Received: from panix3.panix.com (panix3.panix.com [166.84.1.3]) by mail1.panix.com (Postfix) with ESMTP id 168D4487AF for ; Wed, 13 Feb 2002 16:55:14 -0500 (EST) Received: (from cft@localhost) by panix3.panix.com (8.11.3nb1/8.8.8/PanixN1.0) id g1DLtEK12890 for freebsd-questions@freebsd.org; Wed, 13 Feb 2002 16:55:14 -0500 (EST) Date: Wed, 13 Feb 2002 16:55:14 -0500 From: Carl Tucker To: freebsd-questions@freebsd.org Subject: Re: Help, I've broken X Message-ID: <20020213215514.GA10918@panix.com> References: <20020213001051.A3572@bullwinkle.local> <20020213124706.GA78069@sysadm.stc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020213124706.GA78069@sysadm.stc> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 13, 2002 at 03:47:06PM +0300, Igor Roboul wrote: > On Wed, Feb 13, 2002 at 12:10:51AM -1000, Carl Tucker wrote: > > > that user. So far so good. Then, I changed to /usr/home, and, as > > root, issued: find . -delete -print -user [user] > > You have made 2 errors. 1) If you wish use something like "-user > user" then you must not edit passwd before this command 2) "find" > arguments are order-dependent, so right command be find . -user > [user] -print -delete Actually, I went by the uid of the old user, so it would have worked, had I had the order right. I successfully removed the home directory of my new blackboxtext user that way, so I consider my find(1) knowledge upgraded ;). Also, I learned to do find with -print before doing it with -print -delete just to make sure it looked right. -- Carl Tucker cft@panix.com flestrin@worldnet.att.net tuckercl@phnsy.navy.mil To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message