Network File System (NFS)
On a server
Bashsudo apt install nfs-kernel-server
Careful with ownerships.
Bashsudo chown nobody:nogroup /net-disk
Bashsudo chmod 777 /net-disk
Edit
Bashsudo nano /etc/exports
Text Only/net-disk IP or hostname(rw,sync,no_subtree_check) IP-2(rw,sync,no_subtree_check)
Text Only/somedisk {subnetIP}/{subnetMask}(rw,sync,no_subtree_check)
- Give permission to client to change permissions (no_root_squash):
Text Only/somedisk *(rw,insecure,sync,no_subtree_check,no_root_squash)
After adding hostnames or IP you need to run:
On client
Bashsudo apt install nfs-common
Bashsudo mkdir /net-disk-client
Bashsudo mount -t nfs IP:/net-disk /net-disk-client
Bash{IP of NFS server}:{folder path on server} /net-disk-client nfs defaults 0 0
Bashmount /net-disk-client
Bashmount {IP of NFS server}:{folder path on server}