Register now or log in to join your professional community.
Providing you understand what you are doing, use this brief walk-through to set up an NFSv4 server on Ubuntu (with no authentication security). Then mount the share on an Ubuntu client. It has been tested on Ubuntu 14.04 because am right now using ubuntu 14.0.4.
NFS server
To check the NFS server is not installed, you can do...
Install the required packages...
For easier maintenance we will isolate all NFS exports in single directory, where the real directories will be mounted with the --bind option.
Let's say we want to export our users' home directories in /home/users. First we create the export filesystem:
# mkdir -p /export/users It's important that /export and /export/users have 777 permissions as we will be accessing the NFS share from the client without LDAP/NIS authentication. This will not apply if using authentication (see below). Now mount the real users directory with: # mount --bind /home/users /export/users To save us from retyping this after every reboot we add the followingline to /etc/fstab
/home/users /export/users none bind 00There are three configuration files that relate to an NFS server: /etc/default/nfs-kernel-server, /etc/default/nfs-common and/etc/exports.
The only important option in /etc/default/nfs-kernel-server for now is NEED_SVCGSSD. It is set to "no" by default, which is fine, because we are not activating NFSv4 security this time.