2.2.7 Ensure nfs-utils is not installed or the nfs-server service is masked

Information

The Network File System (NFS) is one of the first and most widely distributed file systems in the UNIX environment. It provides the ability for systems to mount file systems of other servers through the network.

If the system does not require network shares, it is recommended that the nfs-utils and nfs-kernel-server packages be removed to reduce the attack surface of the system.

Note: many of the libvirt packages used by Enterprise Linux virtualization are dependent on the nfs-utils package. If the nfs-utils or nfs-kernel-server packages are required as a dependency, the nfs-server service should be disabled and masked to reduce the attack surface of the system

Solution

Run the following commands to remove nfs-utils and nfs-kernel-server :

# zypper remove nfs-utils

# zypper remove nfs-kernel-server

OR

If the nfs-utils or nfs-kernel-server packages are required as a dependency

Run the following command to stop and mask the nfs-server service:

# systemctl --now mask nfs-server

See Also

https://workbench.cisecurity.org/files/3682

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, 800-53|CM-7, CSCv7|9.2

Plugin: Unix

Control ID: ac9278d3b19de14d1dda4b4b561c21879fa36a0145be7eccaa88baa71f6b9757