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