updated notes
This commit is contained in:
@@ -511,6 +511,22 @@ sudo exportfs -r # Export the NFS shares
|
|||||||
sudo exportfs # Display the NFS shares
|
sudo exportfs # Display the NFS shares
|
||||||
|
|
||||||
sudo systemctl start nfs-server # Start the NFS server
|
sudo systemctl start nfs-server # Start the NFS server
|
||||||
|
|
||||||
|
### root-squash and no_root_squash
|
||||||
|
> Note: root-squash is a feature of NFS that allows the root user to access the NFS share as a regular user. no_root_squash
|
||||||
|
> is a feature of NFS that allows the root user to access the NFS share as the root user.
|
||||||
|
|
||||||
|
> Note: async is a feature of NFS that allows the NFS server to write to the NFS share asynchronously.
|
||||||
|
> sync is a feature of NFS that allows the NFS server to write to the NFS share synchronously.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo nano /etc/exports # Edit the exports file
|
||||||
|
|
||||||
|
# Add the following line to the exports file:
|
||||||
|
/mnt/nfs 192.168.1.0/24(rw,sync,no_subtree_check,root_squash) # The directory to export
|
||||||
|
|
||||||
|
# Add the following line to the exports file:
|
||||||
|
/mnt/nfs 192.168.1.0/24(rw,async,no_subtree_check,no_root_squash) # The directory to export
|
||||||
```
|
```
|
||||||
|
|
||||||
### Configure an NFS Client
|
### Configure an NFS Client
|
||||||
|
|||||||
Reference in New Issue
Block a user