Hi, To get rid of this user, you have to first stop snmpd, edit the first config file (usually /etc/snmp/snmpd.conf) to remove the username line, then edit the second file (usually /var/lib/snmp/snmpd.conf) to remove the lines with that username. People commonly forget to stop snmpd and do not look for this second file.
Hope this helps. -- Sam Tannous Cumulus Networks On Mon, Apr 2, 2018 at 9:00 AM, Madhusudhana R <madhusudhan...@in.abb.com> wrote: > Hi All, > > > > Please help on this. > > > > I am facing an issue when deleting a SNMP v3 user. > > > > I have modified snmp agent in such a way that both snmptrapd and snmpd are > running as a single agent where snmptrapd will continuously send traps for > testing purpose. > > > > I have created an snmpv3 user as below. > > > > rwuser User1 > > createUser User1 MD5 "passwordMD5" > > > > On the go, I deleted this user using usm_remove_user() API that removes the > user node from the list and frees it. > > > > Later I created a trap user dynamically (Coded to add users dynamically > using SNMP APIs) with same user name. But without ‘rw’ permission. (no > permission was given neither ‘ro’) > > > > Now the newly created trapuser with same username is sending traps from > agent perfectly. > > But unfortunately this trapuser has rw permission and I can do GET and SET > requests on customized mib objects from this user. > > > > Ideally, apart from sending traps, this trapuser should not support GET and > SET as no permission was given. > > Can you please comment on this ? > > > > Appreciate any valid response. > > Thanks. > > > > Regards, > > Madhu > > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Net-snmp-coders mailing list > Net-snmp-coders@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders