Can anyone help me with some handy scripts to set (chmod) file permissions from the command line? I am not too familiar with command line and would like to run some commands so I can quickly chmod files. This could be handy for others.
I would like a script that will chmod all files with extension *.php in my store directory (including subdirectories) to 644. I could then modify the same script to chmod extension *.tpl .
Also a similar script that would chmod all folders to 755.
I have played around with a lot of module installations and have lost track of some of the permissions changes I have made. After I run the script(s) I can go back and make the chmod changes to the few directories/files that need different settings.
Thanks for your support,



