I have a photo posting script that sometimes does not give the right permissions to photos, and they cannot be seen. The fix is easy enough; I go in and change the permissions to 644, and all is well. But it takes manual intervention.
I'm wondering if there's a way to make a cron job that I run weekly to change the file permissions of all files in a specific directory to rw-r--r-- I'm just not sure of the syntax that would take ... something like "chmod rw-r--r-- home/public_html/directory/*.*" perhaps?
I'm wondering if there's a way to make a cron job that I run weekly to change the file permissions of all files in a specific directory to rw-r--r-- I'm just not sure of the syntax that would take ... something like "chmod rw-r--r-- home/public_html/directory/*.*" perhaps?
Comment