blob: 20edb9f4760e5c1d2216c3c28519a323a43b5723 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
---
tags:
- linux
- nfs
references:
- https://linux.die.net/man/5/exports
- https://wiki.gentoo.org/wiki/Nfs-utils
- https://docs.freebsd.org/en/books/handbook/network-servers/#network-nfs
---
# Server
daemons:
- nfsd : handles reqs from nfs clients
- mountd : handles reqs from nfsd
- rpcbind : allows nfs clients to discover which port the NFS server is using
# Exports
`/etc/exports` contains table of FS' that are exported over NFS. Newline-seperated list of exports that are in turn whitespace seperated with clients allowed to mount there. A client can be followed by parenthesised comma-seperated list of export opts.
Default opts can be specified at the end behind a dash.
**Client specs**
- Single host (name or ip)
- Netgroups
- Wildcards (`?` or `*` and `[]` char classes)
- IP networks (`ipaddr/netmask` )
**Some useful options**
- rw
- ro
**Example**
```
/nfs 192.168.50.0/24(rw,sync,insecure,no_subtree_check)
```
|