View Single Post
Old 04-03-2007, 06:03 AM  
drjones
Confirmed User
 
Join Date: Oct 2005
Location: Charlotte, NC
Posts: 908
Quote:
Originally Posted by sexybabe View Post
i have sitemap.htm on all my sites (around 150) in my server.i want to chmod from 644 to 666.
is there shell script to mass chmod these particular files?
i tried this code but not working.
chmod -R 666 fullsitemap.htm
something like this:

cd /your/web/root
find ./ -name sitemap.htm -exec chmod 666 "{}"\;

It should recursively chmod all the sitemap files in all the subdirectories of your web root.

Or if that has problems, this might work:

cd /your/web/root
chmod 666 `find ./ name sitemap.htm`
__________________
ICQ: 284903372
drjones is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote