REMOVE ALL NFS SERVICES

Linux Disable / Remove All NFS Services

NFS was not designed with security in mind, and has a number of weaknesses, both in terms of the protocol itself and because any NFS installation must expose several daemons, running on both servers and clients, to network attack. I use my CentOS based server only to server web pages and nothing else. How do I disable NFS services under RHEL / CentOS / Fedora Linux?

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

SOURCE: http://www.cyberciti.biz/faq/centos-redhat-rhel-fedora-remove-nfs-services/

Debian / Ubuntu Linux Disable / Remove All NFS Services

NFS was not designed with security in mind, and has a number of weaknesses, both in terms of the protocol itself and because any NFS installation must expose several daemons, running on both servers and clients, to network attack. I use my Debian / Ubuntu Linux based server only to server web pages and nothing else. How do I disable NFS services under Debian or Ubuntu Linux?

 

Following packages are used to provide NFS client and server services under Debian / Ubuntu Linux:

  1. nfs-kernel-server – NFS server package.
  2. nfs-common – NFS support files common to client and server
  3. portmap – RPC port mapper.

Stop NFS Services

Open a command-line terminal (select Applications > Accessories > Terminal), and then type the following command top stop NFS client and server services as follows:
$ sudo service portmap stop
$ sudo service nfs-kernel-server stop
OR
$ sudo /etc/init.d/portmap stop
$ sudo /etc/init.d/nfs-kernel-server stop

Delete Services

Delete nfs-kernel-server, nfs-common, and portmap packages using the apt-get command as follows:
$ sudo apt-get --purge remove nfs-kernel-server nfs-common portmap

SOURCE: http://www.cyberciti.biz/faq/debian-ubuntu-linux-disable-remove-nfs-services-daemons/

Advertisements
This entry was posted in LINUX. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s