A Linux storage administrator is configuring a NAS appliance to export /data/public over NFSv4. The security policy requires that any file created from any client-no matter what UID, GID, or whether the user is root-must be stored on the server as owned by the unprivileged account nfsnobody (UID 65534). Which /etc/exports option should the administrator use to meet this requirement?
The all_squash export option maps every incoming UID and GID to the server's anonymous account (nfsnobody by default). Because all client credentials are replaced, any new files or directories are created with UID and GID 65534, satisfying the policy.
root_squash remaps only UID 0, so non-root users would retain their original ownership. no_root_squash disables all squashing, allowing every client UID-including root-to be preserved. sync merely controls when write operations are committed to disk and has no effect on ownership mapping.