Interview Prep/Linux/Disk space, inodes and filesystems

NFS-mounted files show owner `nobody` and `chown` fails with `Operation not permitted`.

IntermediateTroubleshootingDisk space, inodes and filesystems
Answer

Likely causes → NFSv4 ID mapping domain mismatch between client and server, or root_squash applying to root on the client.

Diagnose →

grep -i domain /etc/idmapd.conf       # on client and server
nfsidmap -l 2>/dev/null
cat /etc/exports                      # on server

Fix → Set the same Domain = example.internal in /etc/idmapd.conf on both, run nfsidmap -c, remount. Do ownership changes on the server, or use no_root_squash only where truly required.

Prevent → Central identity with matching UIDs; consistent idmapd config in your baseline.

All Linux questions Roadmap: Linux

More on Disk space, inodes and filesystems