Chapter 19: Network file systems and autofs
Share a directory from one server, mount it on another with the right access, make the mount permanent or on-demand with autofs, and diagnose the usual failures.
What you will learn
- Export a directory with NFS, open the firewall and mount it from a client.
- Explain how user IDs, root squash and read-only exports decide who can do what.
- Make an NFS mount permanent with fstab, or on demand with autofs.
- Write wildcard and direct autofs maps and inspect what autofs has loaded.
Sections
- Sharing directories with NFS
- Exercise: Export and mount a directory
- Who may do what over NFS
- Exercise: Get the permissions right
- Permanent NFS mounts and autofs
- Exercise: Mount at boot, then on demand
- More autofs maps: wildcards and direct maps
- Exercise: Serve home directories on demand
- Exercise: NFS and autofs review
- NFS and autofs quiz
- NFS and autofs cheat sheet