atom feed17 messages in org.freebsd.freebsd-questionsRe: Please Help ... I am locked out o...
FromSent OnAttachments
Branson MathesonMay 8, 1996 5:22 am 
Sean KellyMay 8, 1996 8:16 am 
Sean KellyMay 8, 1996 8:34 am 
gar...@frt.dec.comMay 8, 1996 10:04 am 
Test AccountMay 8, 1996 11:05 am 
Sean KellyMay 8, 1996 1:40 pm 
James RaynardMay 8, 1996 4:50 pm 
Toshihiro KandaMay 8, 1996 7:26 pm 
Michael SmithMay 8, 1996 8:33 pm 
pa...@asimov.volant.orgMay 9, 1996 7:47 am 
Sean KellyMay 9, 1996 8:07 am 
Garrett WollmanMay 9, 1996 8:39 am 
Dan NelsonMay 9, 1996 9:09 am 
ma...@nibsc.ac.ukMay 9, 1996 9:31 am 
Sean KellyMay 9, 1996 10:09 am 
Toshihiro KandaMay 9, 1996 7:05 pm 
Gabor ZahemszkyMay 13, 1996 8:46 am 
Subject:Re: Please Help ... I am locked out of a FreeBSD machine
From:pa...@asimov.volant.org (pa@asimov.volant.org)
Date:May 9, 1996 7:47:21 am
List:org.freebsd.freebsd-questions

|> 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