From owner-freebsd-questions Thu May 9 07:47:59 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA12126 for questions-outgoing; Thu, 9 May 1996 07:47:59 -0700 (PDT) Received: from phoenix.volant.org (root@phoenix.volant.org [205.179.79.1]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id HAA12111 for ; Thu, 9 May 1996 07:47:54 -0700 (PDT) From: patl@asimov.volant.org Received: from asimov.volant.org (asimov.phoenix.volant.org [205.179.79.65]) by phoenix.volant.org (8.7.5/8.6.9) with SMTP id HAA12114; Thu, 9 May 1996 07:46:30 -0700 (PDT) Received: by asimov.volant.org (5.x/SMI-SVR4) id AA08329; Thu, 9 May 1996 07:47:41 -0700 Date: Thu, 9 May 1996 07:47:41 -0700 Message-Id: <9605091447.AA08329@asimov.volant.org> To: branson@longstreet.larc.nasa.gov, kelly@fsl.noaa.gov Subject: Re: Please Help ... I am locked out of a FreeBSD machine Cc: dbrockus@m1.sprynet.com, freebsd-questions@FreeBSD.ORG Reply-To: patl@Phoenix.volant.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Md5: Qs/HjXy8BYNfULzbQXpY1g== Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk |> Branson> chmod 644 -R .??* |> |> Branson> the '?'s will require two characters in the file |> Branson> name.. not just one which very effectively skips '.' and |> Branson> '..'. |> |> But it unfortunately misses all entries with a name of . followed by a |> single character: .a, .b, .c, etc. But, hey, close enough! Do those |> by hand, I say! Or try something like: find .* -name '..' -prune -o -print | xargs chmod 644 Depending on the current ownership and permissions in the directory tree, you might want to insert "-depth" before the "-name" to get a depth-first traversal. -Pat