You can easily disable NFS, which is a commonly used for sharing data and files between machines. However, its use opens many potential security holes. If NFS is not needed, improve the security by removing and disabling NFS. Open a command-line terminal (select Applications > Accessories > Terminal), and then type:
# chkconfig nfslock off
# chkconfig rpcgssd off
# chkconfig rpcidmapd off
# chkconfig portmap off
# chkconfig nfs off
Delete nfs-utils and portmap packages using the yum command:
# yum remove portmap nfs-utils
See also:
- CentOS / Redhat: Setup NFS v4.0 File Server
- Debian / Ubuntu Linux: Setup NFSv4 File Server
- Mac Os X: Mount NFS Share / Set an NFS Client
- RHEL: How Do I Start and Stop NFS Service?
- How To Restart Linux NFS Server Properly When Network Become Unavailable
- Linux Iptables Allow NFS Clients to Access the NFS Server
- Debian / Ubuntu Linux Disable / Remove All NFS Services
- Linux: Tune NFS Performance
- Mount NFS file system over a slow and busy network
- Linux Track NFS Directory / Disk I/O Stats
- Linux Disable / Remove All NFS Services
- Linux: NFS4 mount Error reason given by server: No such file or directory
- Linux NFS Mount: wrong fs type, bad option, bad superblock on fs2:/data3 Error And Solution
- CentOS / RHEL CacheFS: Speed Up Network File System (NFS) File Access
- Increase NFS Client Mount Point Security
🐧 7 comments so far... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
I am using NFS in cluster infrastructure(RHCE4) . Do you have any other alternative for NFS ?
You can use sshfs…
Edited by moderator: Fixed link
i am linux debian v 5.0 user having busybox 1.16.1 and want to remove nfs totally .
i am butting from windows hyperterminal/putty.
above commands not working for me.
getting error
#chkconfig nfslock off
/bin/sh: chkconfig: not found
how to remove nfs related setting?
You need to run:
See this tutorial for more info.
Thanks Vivek, for replying.
Actually there is no portmap file or directory under init.d
what i have is
# cd /etc/init.d/
#
# ls
alsa-utils hwclockfirst.sh udev
hwclock.sh module-init-tools udev-mtab
the one who designed the system told me that he allready hv disable the nfs settings. But then i m not getting the reason for problem.
also I dont have /etc/fstab file
I’m runnin Windows Server 2003 with NFS service going and i need to kill the NFS service complete but security scans show it still being there how to kill it completely?
my hp 4050n ntwroek printer doesn’t work with large images and certain pdf files in linux.. windows 7 it works flawlessly. I was impressed with Ubuntu’s printing , but it isn’t up to windows spec. It’s also a lot slower with my ntwroek printer.