On Wed, 25 Aug 2004 16:26:42 +0200 Thomas wrote: TA> how is a non-root "agentuser" intended to work together with persistent TA> storage (usually /var/net-snmp/snmpd.conf)? TA> TA> AFAICS, 5.1.2 snmpd creates /var/net-snmp/snmpd.conf as *root* TA> *before* switching to the "agentuser" uid. When shutting down, it TA> consequently fails to save the persistent data (now running as the TA> agentuser).
Interesting. The order that things occur at startup, IMHO, needs work. However, it would be a non-trivial undertaking to fix the 'right' way. A workaround for this particular problem would probably be to use the -g command line open to snmpd, instead of the config token. TA> I guess this is not to be considered ideal behaviour. TA> Now, how to properly fix this? Find a way to get the agentuser to take effect sooner, or delay the creating of the persistent file. I know the reading of configuration files takes place in phases. It might be possible to get the agentuser read in an earlier phase. -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
