On Server (10.10.7.229):
$ sudo apt install nfs-kernel-server #install server
$ sudo mkdir -p /mnt/nfs_drive #create share point
$ sudo chown -R nobody:nogroup /mnt/nfs_drive #no owner
$ sudo chmod 777 /mnt/nfs_drive #set r/w permission
$ sudo vi /etc/exports #define clients grants
/mnt/nfs_drive 10.10.7.218(rw,sync,no_subtree_check) #mine
/mnt/nfs_drive 10.10.7.235(rw,sync,no_subtree_check) #houdini
$ sudo exportfs -a
$ sudo systemctl restart nfs-kernel-server
On Client:
$ sudo apt install nfs-common
$ sudo mkdir -p /mnt/nfs_drive_client #mirror
$ sudo mount 10.10.7.229:/mnt/nfs_drive /mnt/nfs_drive_client
Notes:
$ sudo ufw status #verify the firewall, more details in reference[0]
References:
[0] Working https://linuxhint.com/install-and-configure-nfs-server-ubuntu-22-04/
No comments:
Post a Comment