with: /home/boris is the folder to be shared rw for read and write access of the client sync ?? all_squash ?? 192.168.1.0/24 is a range of client computer IP address of your local network 1001 is the user and group ID. To find it $ id boris
manage hosts, 1st allow nobody in /etc/hosts.deny add
portmap:ALL
nfsd:ALL
mountd:ALL
Then allow your client computer in /etc/hosts.allow add
boris -fstype=nfs,rw,intr,uid=1001,guid=1001 192.168.1.1:/home/boris
with: 192.168.1.1 is the address of server computer /home/boris is the folder shared on server computer. 1001 is the user and group ID. To find it $ id boris rw for read and write access
set the firewall UFW
$ sudo ufw enable
$ sudo ufw default deny incoming
$ sudo ufw default deny outgoing
$ sudo ufw allow to 192.168.1.1
$ sudo ufw allow out to 192.168.1.1
with 192.168.1.1 is the address of the server computer
Lets say that «boris» is my logon such as
/home/boris
is my home folder.1. set the «server» computer:
install nfs-kernel-server and nfs-common
in
/etc/exports
, define the folder to be shared by adding this:with:
/home/boris
is the folder to be sharedrw
for read and write access of the clientsync
??all_squash
??192.168.1.0/24
is a range of client computer IP address of your local network1001
is the user and group ID. To find it$ id boris
manage hosts, 1st allow nobody in
/etc/hosts.deny
addThen allow your client computer in
/etc/hosts.allow
addwith
192.168.1.0/24
is a range of client computer IP address of your local networkset the firewall UFW
with
192.168.1.0/24
is a range of client computer IP address of your local networkstart the server
or after a modification of /etc/exports
2. set the «client» computer:
install nfs-common and autofs
create the folder used to mount the connection with the server
set autofs to automatically mount this folder,
in
/etc/auto.master
add this line:in
/etc/auto.nfs
add this linewith:
192.168.1.1
is the address of server computer/home/boris
is the folder shared on server computer.1001
is the user and group ID. To find it$ id boris
rw
for read and write accessset the firewall UFW
with
192.168.1.1
is the address of the server computerand reboot your client computer.