NFS
Cheat sheet · https://pcornel.dk/topic.php?topic=4129
Answer
NFS on a NAS exports directories to Unix and Linux clients. Restrict exports by host or subnet, choose NFSv3 or NFSv4 consistently, and align user IDs or use Kerberos so permissions work as intended.
Remember
- Restrict exports by host or subnet.
- Root squash maps root to nobody.
- UID/GID must match or use Kerberos.
First checks
showmount -e <nas>— exportsnfsstat -m— client optionsrpcinfo -p <nas>— services
Commands
systemctl status nfs-server
Verify in this order
client → NFS → NAS export
Where it usually breaks
First mismatch in client identity/DNS → network transport → protocol session → authentication/authorization → export/share → backend filesystem → file operation; preserve identity/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4129