Configuring the NFS Server



Configuring the NFS Server

Here are the steps to configure the school's NFS server:

1.
Edit the /etc/exports file to allow NFS mounts of the /home directory with read/write access:

/home                  *(rw,sync)

2.
Let NFS read the /etc/exports file for the new entry, and make /home available to the network with the exportfs command:

[root@bigboy tmp]# exportfs -a
[root@bigboy tmp]#

3.
Make sure the required nfs, nfslock, and portmap daemons are both running and configured to start after the next reboot.

[root@bigboy tmp]# chkconfig nfslock on
[root@bigboy tmp]# chkconfig nfs on
[root@bigboy tmp]# chkconfig portmap on
[root@bigboy tmp]# service portmap start
Starting portmapper: [  OK  ]
[root@bigboy tmp]# service nfslock start
Starting NFS statd: [  OK  ]
[root@bigboy tmp]# service nfs start
Starting NFS services:  [  OK  ]
Starting NFS quotas: [  OK  ]
Starting NFS daemon: [  OK  ]
Starting NFS mountd: [  OK  ]
[root@bigboy tmp]#

After configuring the NIS server, we have to configure its clients. This will be covered next.