UCF STIG Viewer Logo

The snmpd service must not use a default password.


Finding ID Version Rule ID IA Controls Severity
V-218072 RHEL-06-000341 SV-218072r505923_rule High
Presence of the default SNMP password enables querying of different system aspects and could result in unauthorized knowledge of the system.
Red Hat Enterprise Linux 6 Security Technical Implementation Guide 2020-09-03


Check Text ( C-19553r377231_chk )
Verify the "snmp" package is installed:

# rpm -qa | grep -i snmp

If the package is not installed, this is Not Applicable.

To ensure the default password is not set, run the following command:

# grep -v "^#" /etc/snmp/snmpd.conf| grep public

There should be no output.

If there is output, this is a finding.
Fix Text (F-19551r377232_fix)
Edit "/etc/snmp/snmpd.conf", remove default community string "public". Upon doing that, restart the SNMP service:

# service snmpd restart