Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use cron to repair permissions on a regular basis' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use cron to repair permissions on a regular basis
Authored by: treck on Nov 19, '04 12:17:51PM

A simpler method is to use Cronnix, the GUI interface to Cron. Create a new Cron entry with the following command:

diskutil repairPermissions / >> /Users/UserName/PermissionsLog.txt

The second half dumps the result of the repairPermissions command into a text file, in this case, PermissionsLog.txt. You can of course change the path where the file is to be saved.

If you leave this text file in place, cron will append to it on each run, giving you a history.

If you delete the text file, either manually or through an rm cron job, (rm /Users/UserName/PermissionsLog.txt) it will create a new file when run.

I even created this as a system cron job, which atuomatically gives it a higher priority, and it fires off everyday at 7 AM.

---
treck



[ Reply to This | # ]