On Tue, 14 Jun 2022 at 21:12, Vivek Aditya <vivekadit...@gmail.com> wrote:
> Is there a way to encrypt passwords in the snmpd.conf file? Currently, > when we open snmpd.conf file we can look at passwords in plaintext format, > is there a way to store those passwords in encrypted form. Does net-snmp > support any encryption/decryption of passwords while reading from > snmpd.conf? > The snmpusm manpage describes a way of making SNMP v3 users. The passwords are, I believe, stored as MD5 HMAC and not cleartext. Secondly, if there is no such encryption/decryption mechanism available in > net-snmp, how can we secure the snmpd.conf file? > The user details are stored in a file called snmpd.conf in the snmp the persistent directory. This file is owned by the user running the snmpd daemon with permissions 700. One trick, the daemon doesn't write to the file when you create/update the user only when it restarts. - Craig
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders