Date: Thu, 9 May 1996 07:47:41 -0700 From: patl@asimov.volant.org To: branson@longstreet.larc.nasa.gov, kelly@fsl.noaa.gov Cc: dbrockus@m1.sprynet.com, freebsd-questions@FreeBSD.ORG Subject: Re: Please Help ... I am locked out of a FreeBSD machine Message-ID: <9605091447.AA08329@asimov.volant.org>
next in thread | raw e-mail | index | archive | help
|> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9605091447.AA08329>