Jump to content

chmod files on a server by using cron and htaccess


dreamwest

Recommended Posts

i have a script that chmods all files with a .gif extension in a particular directory every minute via crontab:

 

#!/bin/sh
chmod 777 /home/website/public_html/assets/images/products/*.gif

 

that's just the script. i assume you know how to use crontab.  :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.