I'm sorry to bother you again but this is very very strange. :s I will try to explain the steps I'm following:
1. when running the ./configure, I gave the path to the persistent directory where the snmpd.conf will appear. 2. After running the configure, I executed make. 3. At this point, the snmpd.conf (the one that has all the "not edit" notes) haven´t appear yet. 4. I ran the agent and the snmpd.conf file (the one with the "not edit") appears in the persistent directory. 5. I stop the agent. 6. Go to the persistent directory, to the snmpd.conf file (the one with the "not edit") and add the "createUser" directives. Something like this: ... #(Did I mention: Do not edit this file?) # createUser xptouser MD5 passwith8letters DES theotherwith8 ... 7. I run the agent. 8. I run vi to the snmpd.conf file (the one with the "not edit") with the agent running and my directives disappeared. Theres nothing there but the engineboots and the oldEngineID. I'm very sorrow if I'm bothering you with this but I don't have a clue. Thank you very much, Sérgio Cabaço -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: quarta-feira, 18 de Fevereiro de 2009 20:29 To: Sergio Cabaço Cc: [email protected]; [email protected] Subject: Re: Changing passwords using net-snmp 5.3.2 2009/2/18 Sergio Cabaço <[email protected]>: > At this moment, my problem is that I'm inserting "create User" directives without the space, I trust.... > in the snmpd.conf file that says something like > "do not edit... unless it is a create user token and you are de admin". That's fine - you are adding the one token that is valid here. > I've inserted the tokens because I'm the system admin and saved the file. > Then I started the agent. Then, with the agent running, I looked again at > the snmpd.conf file where I've inserted the tokens and there's nothing > there except the EngineBoots and oldEngineId. Silly question - how long is the password you are using? Is it greater than 8 characters? If not, then the agent will indeed delete the "createUser" line and leave nothing in its place. In such a situation, if you check the log files, you should see that it's complaining about the password length. If that's not the case, then I'm not sure what is going wrong. I've just tried this on my system, and it definitely works as expected. Dave ------------------------------------------------------------------------------ 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
