2.2.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 the remote attack surface.

Solution

Run the following commands to disable nfs and rpcbind:

# systemctl --now disable nfs-server

# systemctl --now disable rpcbind





Additional Information:

Additional methods of disabling a service exist. Consult your distribution documentation for appropriate methods.

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

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

Plugin: Unix

Control ID: 9b94e5d66b6caf303b32291a944254bd9a1ff7fd543d5664daf61bf1e586a77f