1
1
---
2
2
title : Network File System
3
3
author : Antoine Le Morvan
4
- contributors : Steven Spencer
4
+ contributors : Steven Spencer, Serge
5
5
---
6
6
# Network File System
7
7
@@ -24,8 +24,8 @@ Remote files are mounted in a directory and appear as a local file system. Clien
24
24
25
25
NFS requires two services to function:
26
26
27
- * The ` network ` service (of course);
28
- * The ` rpcbind ` service.
27
+ * The ` network ` service (of course)
28
+ * The ` rpcbind ` service
29
29
30
30
View the status of the services with the command:
31
31
@@ -49,8 +49,8 @@ sudo systemctl enable --now nfs-server rpcbind
49
49
50
50
Installing the NFS service creates two users:
51
51
52
- * ` nobody ` : used for anonymous connections;
53
- * ` rpcuser ` : for RPC protocol operation.
52
+ * ` nobody ` : used for anonymous connections
53
+ * ` rpcuser ` : for RPC protocol operation
54
54
55
55
Configuring the firewall is necessary:
56
56
@@ -73,25 +73,25 @@ Set up resource shares with the `/etc/exports` file. Each line in this file corr
73
73
/share_name client1(permissions) client2(permissions)
74
74
```
75
75
76
- * ** /share_name** : Absolute path of shared directory;
77
- * ** clients** : Clients authorized to access resources;
78
- * ** (permissions)** : Permissions on resources.
76
+ * ** /share_name** : Absolute path of shared directory
77
+ * ** clients** : Clients authorized to access resources
78
+ * ** (permissions)** : Permissions on resources
79
79
80
80
Declare machines authorized to access resources with:
81
81
82
82
* ** IP address** : ` 192.168.1.2 `
83
83
* ** Network address** : ` 192.168.1.0/255.255.255.0 ` or CIDR format ` 192.168.1.0/24 `
84
- * ** FQDN** : client_ * .rockylinux.org: allows FQDNs starting with client_ from the rockylinux.org domain;
85
- * ` * ` for everybody.
84
+ * ** FQDN** : client_ * .rockylinux.org: allows FQDNs starting with client_ from the rockylinux.org domain
85
+ * ` * ` for everybody
86
86
87
87
Specification of multiple clients is possible on the same line separated by a space.
88
88
89
89
### Permissions on resources
90
90
91
91
There are two types of permissions:
92
92
93
- * ` ro ` : read-only;
94
- * ` rw ` : read-write.
93
+ * ` ro ` : read-only
94
+ * ` rw ` : read-write
95
95
96
96
If no right is specified, then the right applied will be read-only.
97
97
@@ -177,7 +177,7 @@ Mount the server's NFS share:
177
177
$ mount –t nfs 172.16.1.10:/share /mnt/nfs
178
178
```
179
179
180
- Automation of the mount can happen at system startup the ` /etc/fstab ` file:
180
+ Automation of the mount can happen at system startup with the ` /etc/fstab ` file:
181
181
182
182
```
183
183
$ sudo vim /etc/fstab
0 commit comments