Skip to content

Latest commit

 

History

History
28 lines (26 loc) · 1.05 KB

nfs.md

File metadata and controls

28 lines (26 loc) · 1.05 KB

NFS Server Installation, quick HOWTO

  • install nfs-utils package (client and daemon package files)
  • edit /etc/exports file accordingly
# sample shares
/mnt/share      host1(rw,sync,fsid=0,insecure,no_subtree_check) \
                host2(rw,sync,all_squash,anonuid=1000,anongid=1000,fsid=0,insecure,no_subtree_check) \
                host3(rw,sync,insecure,no_subtree_check,all_squash,anonuid=501,anongid=501)
/projects       proj*.local.domain(rw)
/usr            *.local.domain(ro) @trusted(rw)
/home/ben       pc001(rw,all_squash,anonuid=150,anongid=100)
/pub            *(ro,insecure,all_squash)
/srv/www        -sync,rw server @trusted @external(ro)
/foo            2001:db8:9:e54::/64(rw) 192.0.2.0/24(rw)
/build          buildhost[0-9].local.domain(rw)
  • edit /etc/nfs.conf to specify which IPs and/or hostnames to listen on
host=192.168.1.222
# hostname as alternative
host=nfsservername

More info from https://wiki.archlinux.org/title/NFS

Useful links