|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
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 |
|
|
|
|
|
#2 | |
|
Confirmed User
Join Date: Aug 2002
Posts: 1,844
|
Quote:
chmod -R 666 */fullsitemap.htm |
|
|
|
|
|
|
#3 | |
|
Confirmed User
Join Date: Oct 2005
Location: Charlotte, NC
Posts: 908
|
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`
__________________
ICQ: 284903372 |
|
|
|
|
|
|
#4 |
|
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 |
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Jun 2005
Posts: 3,129
|
thanks i will try this
|
|
|
|