View Single Post
Old 08-28-2011, 11:19 AM  
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Only way to do this is to simply add chmod 777 file entry for each file on batch script as Baba posted example.
So you would login to ssh,open text editor(nano should be best to use,open it by typing nano batchscriptname),
add for example:
chmod 777 /home/public_html/iliketurtles/index.php
chmod 777 /home/public_html/barbecueisgood/index.php
and add same for each folder and file which you need to apply chmod. Then you save file and type ./batchscriptname to start it.
If you have common pattern,for example you want to do that on all files with extension php or on every file called index,then you could use find command to apply chmod to that pattern.
Klen is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote