/etc/exports
Structure of /etc/exports
/etc/exportsdirectory client(options) client(options) ...Example /etc/exports File
/etc/exports File# Share /srv/nfs to a specific client with read-write access
/srv/nfs 192.168.1.100(rw,sync,no_subtree_check)
# Share /home directory to all clients in the 192.168.1.0/24 network with read-only access
/home 192.168.1.0/24(ro,sync,no_subtree_check)
# Share /var/nfs with two specific clients with read-write access and root squashing
/var/nfs 192.168.1.101(rw,sync,no_subtree_check,root_squash) 192.168.1.102(rw,sync,no_subtree_check,root_squash)Options Explained
Managing NFS Exports
Apply Export Changes
Show Current NFS Exports
Start NFS Server
Enable NFS Server at Boot
Restart NFS Server
Setting Up an NFS Server and Client
NFS Server Setup
NFS Client Setup
Security Considerations
Conclusion
Last updated