I have an administrative user, admin, who uses a configuration utility to manipulate 
parts of the system setup, including snmp users.  To do this, I've set 
/var/net-snmp/snmpd.conf to look like:

  # ls -ld /var/net-snmp/
  drwxrwxr-x    2 root     admin           0 Jan  1 02:14 /var/net-snmp/
  # ls -l /var/net-snmp/snmpd.conf 
  -rw-rw----    1 admin    admin         381 Jan  1 02:14 /var/net-snmp/snmpd.conf

But everytime I restart the agent, this file gets rewritten to be:

  # ls -l /var/net-snmp/snmpd.conf 
  -rw-------    1 root     root          381 Jan  1 

And then the administrative user can't access the file any longer.

I found PERSISTENT_MASK but don't see any way to affect the _ownership_ of the 
recreated persistent file.  Am I missing something?  If not, I'm considering modifying 
whatever function rewrites the file to preserve ownership and mode.  Is there a good 
alternative?  A reason I shouldnt' do this?  If it's a good idea, what function am I 
looking for?  I'll keep looking but what a tangle web is net-snmp. ;-)

                            Chris



-------------------------------------------------------
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-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to