Bug 1514501 - Unexpanded SNMPCONFPATH in /var/lib/net-snmp/snmpd.conf
Summary: Unexpanded SNMPCONFPATH in /var/lib/net-snmp/snmpd.conf
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: net-snmp
Version: 7.4
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Josef Ridky
QA Contact: David Jež
URL:
Whiteboard:
Depends On:
Blocks: 1660146
TreeView+ depends on / blocked
 
Reported: 2017-11-17 15:23 UTC by Renaud Métrich
Modified: 2019-08-06 13:08 UTC (History)
2 users (show)

Fixed In Version: net-snmp-5.7.2-39.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1660146 (view as bug list)
Environment:
Last Closed: 2019-08-06 13:08:42 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:2239 None None None 2019-08-06 13:08:57 UTC

Description Renaud Métrich 2017-11-17 15:23:23 UTC
Description of problem:

Looking at /var/lib/net-snmp/snmpd.conf, we can see this:

...
# DO NOT STORE CONFIGURATION ENTRIES HERE.
# Please save normal configuration tokens for snmpd in SNMPCONFPATH/snmpd.conf.
# Only "createUser" tokens should be placed here by snmpd administrators.
# (Did I mention: do not edit this file?)
...


SNMPCONFPATH should be expanded into /etc/snmp (for RHEL).


Version-Release number of selected component (if applicable):

net-snmp-5.7.2-28.el7.x86_64


Additional info:

Corresponding code: snmplib/read_config.c

1624     /*
1625      * save a warning header to the top of the new file 
1626      */
1627     snprintf(fileold, sizeof(fileold),
1628             "%s%s# Please save normal configuration tokens for %s in SNMPCONFPATH/%s.conf.\n# Only \"createUser\"      tokens should be placed here by %s administrators.\n%s",
1629             "#\n# net-snmp (or ucd-snmp) persistent data file.\n#\n##############################################     ##############################\n# STOP STOP STOP STOP STOP STOP STOP STOP STOP \n",
1630             "#\n#          **** DO NOT EDIT THIS FILE ****\n#\n# STOP STOP STOP STOP STOP STOP STOP STOP STOP \n#     ###########################################################################\n#\n# DO NOT STORE CONFIGURATION ENTR     IES HERE.\n",
1631             type, type, type,
1632 >-------    "# (Did I mention: do not edit this file?)\n#\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");

Comment 6 errata-xmlrpc 2019-08-06 13:08:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2239


Note You need to log in before you can comment on or make changes to this bug.