From: Jamie C. <jca...@we...> - 2008-03-03 18:54:11
|
On 03/Mar/2008 07:33 Bill Moyers wrote .. > Hi, is there a good way to have a global data file for a usermin module? > In other words, certain actions in a usermin module should add/delete a > line to a single file regardless of user. The global file will be > processed by a single cron job later. One option obviously is to have a > globally writeable file, but this seems like a bad solution. Sure, you could have your module manage a file in /etc/usermin/yourmodulename. This directory is available in the $module_config_directory global variable. As long as the module doesn't call &switch_to_remote_user(); , all code will still run as root and will have write access to that file. - Jamie |