Greg,

I don't see it either, but you should be able to accomplish the same effect by 
using the "find" command.  See "man find" and search for "-type".  On my 
system, the types "directory" (d) and "regular file" (f)  are supported...

So, something like:
find <target-dir> -type d -exec chmod 755 \{\} \;
find <target-dir> -type f -exec chmod 644 \{\} \;

_should_ work (assuming that you replace <target-dir> with the directory you 
want to change.  But, be aware that I haven't tested this _At_All_!  At the 
very least, you should do a test run, by replacing "chmod NNN" with "echo", 
BEFORE doing something that will make changes to your filesystem--You Have 
Been Warned...  Also, "Please Note": the \'s are there for a reason.  I'll 
leave it as an 'exercise for the reader' to figure out 'why?'...)

-Jason

P.S.  In the future, please consider asking this sort of question on the 
"newbie" list (or, better yet, on a generic linux/unix list.)  YCITMIGA...

On Thursday 05 June 2003 10:58 pm, Greg Meyer wrote:
> Can I run chmod so that it only applies the changes to files or only to
> directories.  I don't see an option in the man page that does this, but I
> am sure it must be possible.  I want my files to be set to 644 and my
> directories to 755.


=========================
From the back, Vetinari looked like a carnivorous flamingo.
(Men at Arms)


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to