SV-279938r1156367_rule
V-279938
SRG-OS-000095-GPOS-00049
UBTU-24-100050
CAT I
10
Configure Ubuntu 24.04 LTS to disable non-essential capabilities by removing the nfs-common and nfs-kernel-server packages from the system with the following commands:
Remove packages if present:
$ sudo apt purge --yes nfs-common nfs-kernel-server
Remove any unneeded dependencies
$ sudo apt autoremove --yes
Verify NFS services are gone:
$ sudo systemctl list-units --type=service | grep nfs
Verify Ubuntu 24.04 LTS does not have nfs packages installed.
Check if packages are installed:
$sudo dpkg -l | grep -E 'nfs-common | nfs-kernel-server'
If the nfs-common or nfs-kernel-server packages are installed, this is a finding
V-279938
False
UBTU-24-100050
Verify Ubuntu 24.04 LTS does not have nfs packages installed.
Check if packages are installed:
$sudo dpkg -l | grep -E 'nfs-common | nfs-kernel-server'
If the nfs-common or nfs-kernel-server packages are installed, this is a finding
M
5673