Hi!!
U can use find with -type and -exec options. But u will have to use
find twice once for directories, and once for files.
find . -type d -exec chmod 755 {} \;
This is for directories
find . -type f -exec chmod 644 {} \;
for files
Hope this resolves ur problem.
Dwivedi Ajay kumar wrote:
> hi all,
> I have got a dircetory with all its subdirs and files in the mode
> 700. I wish to change the mode of all the directories to 755 and files
> in them to 644. Is there a way it can be done easily? chmod does not seem
> to distinguish between dir and files.
>
> Moreover is there a cool way to change the mode of all files
> starting with "." ? ".*" seems to match even ".." and during a recursive
> chmod changes the modes in even the parent directory.
>
> Bye... and thanks in advance.
> --
>
> #!!! If anything can go wrong, _FIX_ it. (To hell with MURPHY)
>
> Ajay kumar Dwivedi
> [EMAIL PROTECTED]
>
> ----------------------------------------------
> LIH is all for free speech. But it was created
> for a purpose. Violations of the rules of
> this list will result in stern action.
--
"it is not the style of clothes one wears, neither the kind of
automobile one drives, nor the amount of money one has in the
bank, that counts. These mean nothing. It is simply service that
measures success."
Dr. George Washington Carver.
----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH