--- tags: - linux - nfs references: - https://linux.die.net/man/5/exports - https://wiki.gentoo.org/wiki/Nfs-utils - https://docs.freebsd.org/en/books/handbook/network-servers/#network-nfs --- # Server daemons: - nfsd : handles reqs from nfs clients - mountd : handles reqs from nfsd - rpcbind : allows nfs clients to discover which port the NFS server is using # Exports `/etc/exports` contains table of FS' that are exported over NFS. Newline-seperated list of exports that are in turn whitespace seperated with clients allowed to mount there. A client can be followed by parenthesised comma-seperated list of export opts. Default opts can be specified at the end behind a dash. **Client specs** - Single host (name or ip) - Netgroups - Wildcards (`?` or `*` and `[]` char classes) - IP networks (`ipaddr/netmask` ) **Some useful options** - rw - ro **Example** ``` /nfs 192.168.50.0/24(rw,sync,insecure,no_subtree_check) ```