Date: Wed, 13 Feb 2002 16:55:14 -0500 From: Carl Tucker <cft@panix.com> To: freebsd-questions@freebsd.org Subject: Re: Help, I've broken X Message-ID: <20020213215514.GA10918@panix.com> In-Reply-To: <20020213124706.GA78069@sysadm.stc> References: <20020213001051.A3572@bullwinkle.local> <20020213124706.GA78069@sysadm.stc>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020213215514.GA10918>