Skip to content

Uninstall the nis package

An XCCDF Rule

Description

The support for Yellowpages should not be installed unless it is required.

Rationale

NIS is the historical SUN service for central account management, more and more replaced by LDAP. NIS does not support efficiently security constraints, ACL, etc. and should not be used.

ID
xccdf_org.ssgproject.content_rule_package_nis_removed
Severity
Low
Updated

Remediation Templates

A Puppet Snippet

include remove_nis
class remove_nis {
  package { 'nis':
    ensure => 'purged',
  }
}

An Ansible Snippet

- name: Ensure nis is removed
  package:
    name: nis
    state: absent
  tags:
  - disable_strategy

script:kickstart

package remove nis

script:bootc

dnf remove nis

Anaconda Pre-Install Instructions

package --remove=nis

A Shell Script

# CAUTION: This remediation script will remove nis
#	   from the system, and may remove any packages
#	   that depend on nis. Execute this
#	   remediation AFTER testing on a non-production
#	   system!