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.
|