< Previous | Contents | Next >
2.2. Configuration
You can configure the directories to be exported by adding them to the /etc/exports file. For example:
/ubuntu *(ro,sync,no_root_squash)
/home *(rw,sync,no_root_squash)
You can replace * with one of the hostname formats. Make the hostname declaration as specific as possible so unwanted systems cannot access the NFS mount.
To start the NFS server, you can run the following command at a terminal prompt:
sudo systemctl start nfs-kernel-server.service