Okay folx, I'm sure this has already been answered but I am having a hard time finding any information on it. I just built v5.2.1 with a persistent file of /var/net-snmp/snmpd.conf but have tried this on both 5.2.1 and on 5.1.2.

I put an initial createuser directive into /usr/local/share/snmp/snmpd.conf (I realize that this is NOT the correct place for it, but it worked in windows so I tried it here as well.)

I can then walk the tree as this initial user. I can clone initial to create a new user using:

snmpusm -v3 -u initial -l authNoPriv -a MD5 -A "password" localhost create dcspc initial

and get back: User successfully created.

I then change the password of the new user using:

snmpusm -v3 -u dcspc -l authNoPriv -a MD5 -A "password" -x DES localhost passwd password newpassword

and get back:  SNMPv3 Key(s) successfully changed.

I can walk the tree using the new user (I've already set up his access in the snmpd.conf).

I then kill 'SNMP' (Using just kill, or -TERM signal, I am not using -9(KILL), I have even tried the snmpset method of restarting the agent.) and can see the new lines in the persistant snmpd.conf

cat snmpd.conf
#
# net-snmp (or ucd-snmp) persistent data file.
#
############################################################################
# STOP STOP STOP STOP STOP STOP STOP STOP STOP
#
#          **** DO NOT EDIT THIS FILE ****
#
# STOP STOP STOP STOP STOP STOP STOP STOP STOP
############################################################################
#
.
.
.


usmUser 1 3 0x80001f8880015db2474288a79e 0x646373706300 0x646373706300 NULL .1.3.6.1.6.3.10.1.1.2 0x9dea2200f2cd20f7210971dad3b5d60e .1.3.6.1.6.3.10.1.2.2 0x9dea2200f2cd20f7210971dad3b5d60e ""
usmUser 1 3 0x80001f8880015db2474288a79e 0x696e697469616c00 0x696e697469616c00 NULL .1.3.6.1.6.3.10.1.1.2 0xd380568b23a8e5a84839a5ebc2ca6440 .1.3.6.1.6.3.10.1.2.2 0xd380568b23a8e5a84839a5ebc2ca6440 ""



So as you can see the usmUser lines are in the persistent file.

I then go and restart snmp using the startup script we have written and the user that I created is no longer there. All usmUser lines have been removed from the snmpd.conf (persistent file) and no users exist in the usmTable anymore.


Anyone have any ideas? I used this process with windows and it worked fine. It's not working for unix. snmpd is running as root and perms on the persistent file are 600. Please let me know if you need anymore information.



Thank you all for any suggestions, Jayson

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to