2.2.4 Ensure network file system services are not in use

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. FreeBSD ships with an NFS Server in disabled state in the base system.

If the system does not require access to network shares or the ability to provide network file system services for other host's network shares, it is recommended that the nfsd service be disabled to reduce the attack surface of the system.

Solution

Run the following command to stop and disable the nfsd service:

# service nfsd onestop
# service nfsd onedisable

See Also

https://workbench.cisecurity.org/benchmarks/19044

Item Details

Category: CONFIGURATION MANAGEMENT

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

Plugin: Unix

Control ID: 9f10ee82f61938f8f3f8798b49439a1471eaa46124d723668e8e25c035a51bb1