Re: [webmin-devel] Usermin Module Global Data
"Jamie Cameron" <[email protected]>
| Newsgroups | gmane.comp.web.webmin.devel |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ - Forwarded by the Webmin development list at [email protected] To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-devel