You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NFS server documentation for network-communications.md
* NFS server documentation for network-communications.md
* Fix NFS server documentation. Forgot to close backtick
* NFS server documentation fix typo rw -> ro
For example to view the full documentation for `share(8)` you can use this command:
349
+
```console
350
+
$ man share.8
351
+
```
352
+
353
+
354
+
#### Sharing a folder with NFS
355
+
356
+
To create a read-only temporary NFS share on an existing folder in this example `/nfs/example` you can use the following [share(8)](https://www.illumos.org/man/8/share) command:
The flags provided can be described in a table such as the following:
363
+
364
+
|Flag|Description|
365
+
|------|-----------|
366
+
|-d|Adds a description for the share in this case `example-share`|
367
+
|-F|Filesystem type, in this case NFS.|
368
+
|-o|Options for the NFS share in this case `ro`|
369
+
370
+
If you want the share to be persistent, you can write it to the [dfstab(5)](https://illumos.org/man/5/dfstab) by using the `-p` flag on the [share(8)](https://www.illumos.org/man/8/share) command.
371
+
372
+
You can then use the [share(8)](https://www.illumos.org/man/8/share) command with no arguments to list shares as follows:
373
+
374
+
```console
375
+
$ share
376
+
- /nfs/example ro "example-share"
377
+
```
378
+
379
+
After this you can enable the `network/nfs/server` service with [svcadm(8)](https://www.illumos.org/man/8/svcadm) using the following command:
380
+
381
+
```console
382
+
# svcadm enable network/nfs/server
383
+
```
384
+
385
+
And then use [shareall(8)](https://www.illumos.org/man/8/shareall) to share it on the network as follows:
386
+
387
+
```console
388
+
# shareall
389
+
```
390
+
391
+
392
+
#### Using an access list
393
+
394
+
An access list argument is a colon separated list, the access list may include the following:
395
+
396
+
* A hostname, which must be represented as a fully qualified DNS or LDAP name.
397
+
* A netgroup
398
+
* A domain name suffix
399
+
* A network, IP address or IP subnet
400
+
401
+
This is an example of creating an NFS share that's read-only for everyone, but provide read-write and root access to a single IP address in this case `192.168.0.100`, IP addresses are prefixed with `@` as they are in the network components:
0 commit comments