# NFS Network File System since the 80s NFSv4 is recommended since it supports TCP and Kerberos authentication. # Configuration Folders are defined in `/etc/exports`. An example: ```sh # public read only share /mnt/data/iso *(ro) # alice can readwrite, bob can read /var/www alice(rw) bob(ro) # everyone from netsec.local domain has access /var/backup *.netsec.local(rw) # different networks have different levels of access /var/upload 10.10.10.0/24(ro) 10.10.20.0/24(rw) ``` After changing configuration, run `exportfs -arv` to write export dirs to `/var/lib/nfs/etab` # Usage On a client, mount the NFS export: `mount -t nfs -o vers=4 server:/mnt/data /home/servermnt` **NOTE** Sometimes providing just an IP address in place of a hostname can cause mount to hang. Mount it permanently using fstab: `server:/mnt/data /home/servermnt nfs defaults,timeo=900,retrans=5,_netdev 0 0` See also -------- See the arch wiki https://wiki.archlinux.org/title/NFS for more info.