On Thu, 01 Dec 2005 09:38:25 -0500 [EMAIL PROTECTED] wrote:
CRC> > I also found
CRC> > http://sourceforge.net/mailarchive/message.php?msg_id=9550619 which
CRC> > describes a patch I'd made to read_config.c in v5.1.1.
I'd suggest something more akin to the agentXperms token, so set actual
permissions, instead of assuming what is there is correct.
CRC> More research makes this look even weirder. The agent is seeing the
CRC> admingroup config token and properly processing it. If I `killall
CRC> snmpd`, the persistent store is rewritten with the desired group.
CRC> HOWEVER, if I then reboot, something -- snmpd? -- changes the ownership
CRC> of the persistent store back to root/root.
CRC> the file before the admingroup token is processed (to update engineBoots
CRC> or oldEngineID?).
The agentgroup has been processed, but that only 'remembers' the value. It
isn't used until later, and unfortunately 'later' is after it has done the
initial persistent store save, which is why you see the current behavior.
You could try patching snmpd.c to move the groupid change right before the
snmp_store(), and see if that helps.
--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.
Robert Story; NET-SNMP Junkie
Support: <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: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders