Hi all,
 
I've already sent an email about this topic but this time I'll tried to be more 
cleared.
 
I'm using net-snmp 5.3.2 and I'm trying to change the passwords for the users 
using the command snmpusm.
The configuration file, snmpd.conf, used is as shown,
...
rwuser user1 authnopriv
rwuser user2 authpriv

createUser user1 MD5 pass1
createUser user2 MD5 pass2 DES pass2
...
 
I tried to send the command with the options,
 
snmpusm -v 3 -u user2 -n "" -l authPriv -a MD5 -A pass2 -x DES -X pass2 
localhost passwd pass2 pass2_n
 
but it returns,
 

Error in packet.
Reason: inconsistentName (That object can not currently be created)
Failed object: 
SNMP-USER-BASED-SM-MIB::usmUserOwnAuthKeyChange.".....zzzzz"."pass2"
 
I also tried to change the password by using the user2, the authNoPriv user 
with,
 
snmpusm -v 3 -u user2 -n "" -l authPriv -a MD5 -A pass2 -x DES -X pass2 
localhost passwd pass1 pass1_n user1
 
We notice that if the createUser line it's not present in the configuration 
file we can create the user and than change the password.
 
Is it possible or is there a way to change the passwords for all the users, 
autNoPriv or authPriv, when they are created in the configuration file?
Does anyone ever done such thing? Any idea?
 
Thanks in advanced,
Sérgio Cabaço

-----Original Message-----
From: Wes Hardaker [mailto:[email protected]] 
Sent: segunda-feira, 16 de Fevereiro de 2009 16:10
To: Sergio Cabaço
Cc: [email protected]; [email protected]
Subject: Re: Changing passwords using net-snmp 5.3.2

>>>>> On Mon, 16 Feb 2009 11:38:02 -0000, Sergio Cabaço 
>>>>> <[email protected]> said:

SC> Sample of snmp.conf

I hope you mean "snmpd.conf"
                     ^
                     ^
                     ^

But...

SC> createUser user1 MD5 pass1

SC> createUser user2 MD5 pass2 DES pass2

Those lines shouldn't go into your snmpd.conf.  They should go into
/var/net-snmp/snmpd.conf (or more simply, use the net-snmp-config script
for creating new users instead by using the --create-snmpv3-user switch).


-- 
Wes Hardaker
Sparta, Inc.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to