Files
secureblue/files/scripts/disablenfsdaemons.sh
2024-10-05 01:32:37 -07:00

30 lines
560 B
Bash

#!/usr/bin/env bash
# Tell build process to exit if there are any errors.
set -oue pipefail
echo "Disabling NFS daemons"
systemctl disable nfs-idmapd
systemctl mask nfs-idmapd
systemctl disable nfs-mountd
systemctl mask nfs-mountd
systemctl disable nfsdcld
systemctl mask nfsdcld
systemctl disable rpc-gssd
systemctl mask rpc-gssd
systemctl disable rpc-statd-notify
systemctl mask rpc-statd-notify
systemctl disable rpc-statd
systemctl mask rpc-statd
systemctl disable rpcbind
systemctl mask rpcbind
systemctl disable gssproxy
systemctl mask gssproxy