updated notes

This commit is contained in:
Hugh Ratsch
2025-02-16 16:59:09 -06:00
parent 0b2e15b7e5
commit 5c25e1c8b6
+16
View File
@@ -511,6 +511,22 @@ sudo exportfs -r # Export the NFS shares
sudo exportfs # Display the NFS shares
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