![]() |
mass chmod command-need help
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 |
Quote:
chmod -R 666 */fullsitemap.htm |
Quote:
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` |
Also, BTW.. you sure you want to make those files on your webserver world writeable? Seems like whatever your trying to accomplish, theres gotta be a better way. Generally, its very bad practice to do something like that.
:2 cents: |
thanks i will try this
|
| All times are GMT -7. The time now is 12:25 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123