[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: chmod script



Pere Camps <pere@casal.upc.es> writes:

> Hi!
> 
> 	Does anybody have a script for changing all the dirs and subdirs
> into mode 700 and all the files into mode 600 ?

Maybe

    chmod -R u=rwX,go= path

Capital X means preserve the exisiting execute permission.

-- 
	 Carey Evans  http://home.clear.net.nz/pages/c.evans/
"The risk of U.S. national security resting in the hands of adults who play
with children's toys during office hours is left as an exercise to the reader."
                                                       - Bruce Martin in RISKS


Reply to: