2.1.7 Ensure NFS and RPC are not enabled - nfs-server

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.

Rationale:

If the system does not export NFS shares or act as an NFS client, it is recommended that these services be disabled to reduce remote attack surface.

Solution

Run the following commands to disable nfs, nfs-server and rpcbind:

# systemctl disable nfs
# systemctl disable nfs-server
# systemctl disable rpcbind

# systemctl stop nfs
# systemctl stop nfs-server
# systemctl stop rpcbind

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7b., CSCv6|9.1, CSCv7|9.2

Plugin: Unix

Control ID: 5ca0332e03d189d7335bee64c802ed459a24d9371d4ced2ae41b40b997336e93