Google the SiteQuicksearchCategoriesCreative CommonsBlog Administration |
Saturday, November 18. 2006Let root see all files with locateTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Thanks for the info! The only change I would suggest is that you not edit /etc/crontab. It just makes for a more painful integration when an upgrade tries to change it.
Better is to edit root's personal crontab, via the 'crontab -e' command. Any user can do this, and it means you don't have to worry about losing /etc/crontab in a later upgrade.
Another optimization I just thought of - instead of the alias, you can set LOCATE_PATH in the environment. No real difference in the end, I don't think.
QUOTE: The only change I would suggest is that you not edit /etc/crontab. It just makes for a more painful integration when an upgrade tries to change it. Better is to edit root's personal crontab, via the 'crontab -e' command. Any user can do this, and it means you don't have to worry about losing /etc/crontab in a later upgrade. Well funnily enough it took me ages to work out I'd put the line in /var/cron/tabs/root originally! I was sure I'd done the thing, but couldn't work out where I'd done it since I usually do everything in /etc/crontab nowadays. What I do is use RCS the versioning system to keep track of all changes to /etc/crontab (and all other major config files). I keep meaning to post about it on the blog, don't think I have as yet... it's a really useful thing to have config files in versioning - if something goes wrong or I made a mistake, no problem just revert back to an older version. QUOTE: Another optimization I just thought of - instead of the alias, you can set LOCATE_PATH in the environment. No real difference in the end, I don't think. Good idea :)
you're missing a terminating quotation mark in the shell script to update the database as nobody.
Thank you for taking your time to post this! It is a great reference for all the modifications one should do to their server.
|