[Gllug] How to chmod selectively without writing a script

Simon Stewart sms at lateral.net
Tue Oct 1 12:20:12 UTC 2002


On Tue, Oct 01, 2002 at 01:05:31PM +0100, Garry Heaton wrote:
> I want to be able to change the permissions on subdirectories without
> changing the contents of those directories. So far I've tried

<snip>

You could always try using find:

find . -type d -print -exec chmod 644 {} \;

should do what you want. The info pages have some more details about
the various flags and attributes that you can call find with, but this
should get you started.

Cheers,

Simon

-- 
"A friend of mine is into Voodoo Acupuncture. You don't have to
go. You'll just be walking down the street, and...........ooooohhhhhh,
that's much better..." --- Steven Wright

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list