How do I set up an NFS server to multiple clients? I have set up an NFS server but it does only share to one client.
Asked
Active
Viewed 3.4k times
2 Answers
16
In your /etc/exports file, you can either use a wildcard:
/path/to/share *(rw,sync,etc)
Or you can use CIDR notation
/path/to/share 10.0.0.0/24(rw,sync)
Or you can put multiple IPs in line like so:
/path/to/share 10.0.0.5(rw) 10.0.0.6(ro)

rm-vanda
- 3,176
-
1
-
1
-
Beware the pitfall of
10.0.0.5 (rw) 10.0.0.6(ro)
where you think you grant read/write to.5
but you are - due to the space between ip and permission - reverting to default for.5
and grating read/write to all hosts. – sastorsl Mar 15 '23 at 09:36
1
This website quite clearly explains how to setup NFS Server and Clients. It helped me setup my first lot.
https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-14-04
Give it a shot and you'll find yourself never using samba nor CIFS ever again!

DanglingPointer
- 1,123
- 1
- 13
- 23
-
1From "Ask Ubuntu Help": Links to external resources are encouraged, but please add context around the link so your fellow users will have some idea what it is and why it’s there. Always quote the most relevant part of an important link, in case the target site is unreachable or goes permanently offline. – Boris Oct 04 '15 at 07:58
/etc/exports
contain? Have you added the other clients IPs or hostnames to it? – muru Apr 16 '15 at 08:41