Skip to main content

How to configure Network file system (NFS) server?

67.How to configure Network file system (NFS) server?
Ans.
1. Verify the service package using following command
#rpmquery –qa | grep nfs

2. The export a file system we need to modify ‘/etc/exports’ file.
For example we want to export /media then we’ll add the following entries in ‘/etc/exports’ file.
/media 192.168.166.0/24(rw)

3. Now, with the export configured, start the daemons using the initializing scripts:
#server nfs start
#server nfs lock start

4. Now, use rpcinfo –p to make sure the necessary daemons are running as follow:
#rpcinfo –p

5. Next, execute showmount –a to list the servers NFS exports as follow:
#showmount –a

6. Finally, enable NFS from boot with the help of chkconfig.
#chkconfig nfs on

Comments

Popular posts from this blog

Java,ES,QT practical files

All practical files: Click below to start download Uploaded on special request||||

Vidyalankar Question paper solutions

Download from their website: http://www.vidyalankar.org/index.aspx or just click here to download

Discuss security issues in Network File system.

71.Discuss security issues in Network File system. Ans. 1. NFS protocol version 3 and older have some security problems that make it unsuitable for use across the Internet and potentially unsafe for use even in trusted network. 2. One NFS weakness, in general terms, is the /etc/exports file, if a cracker is able to spoof or take over a trusted address, an address listed in /etc/exports then your exported NFS mount are accessible. 3. NFS has normal Linux file system access controls that take over once a client has mounted an NFS export, once this happens normal user and group permissions on the files take over access control. 4. The 1st way to defense is to use host access control, to limit access to services , particularly the portmapper, which has long been target of exploits attempts. 5. For this add the entries in /etc/hosts.clevy lockd, statd, mountd and rquoted. 6. Careful use of IS packet firewall, using netfilter, dramatically increases NFS server security. ...