Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-03-2007, 05:34 AM   #1
sexybabe
Confirmed User
 
Join Date: Jun 2005
Posts: 3,129
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
sexybabe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2007, 05:43 AM   #2
roly
Confirmed User
 
Join Date: Aug 2002
Posts: 1,844
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
i'm not an expert on this stuff but maybe

chmod -R 666 */fullsitemap.htm
roly is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2007, 06:03 AM   #3
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
Old 04-03-2007, 06:07 AM   #4
drjones
Confirmed User
 
Join Date: Oct 2005
Location: Charlotte, NC
Posts: 908
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.

__________________
ICQ: 284903372
drjones is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2007, 06:17 AM   #5
sexybabe
Confirmed User
 
Join Date: Jun 2005
Posts: 3,129
thanks i will try this
sexybabe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.