000-221 · Question #188
An administrator changed an NFS mount point to read/write capability by adding the -rw option in /etc/exports. Clients are still unable to write to the Network File System. How can this be resolved?
The correct answer is A. Run the exportfs -a command on the NFS server. After editing /etc/exports, the NFS server must re-read and re-export its shares before clients see the new permissions. The exportfs -a command forces this re-export without requiring a service restart.
Question
An administrator changed an NFS mount point to read/write capability by adding the -rw option in /etc/exports. Clients are still unable to write to the Network File System. How can this be resolved?
Options
- ARun the exportfs -a command on the NFS server.
- BIssue the refresh -g nfs command on the NFS server.
- CUnmount and mount the NFS file system on the NFS server.
- DUse the mount -o rw command on the NFS filesystem on the NFS server.
How the community answered
(55 responses)- A80% (44)
- B13% (7)
- C2% (1)
- D5% (3)
Why each option
After editing /etc/exports, the NFS server must re-read and re-export its shares before clients see the new permissions. The exportfs -a command forces this re-export without requiring a service restart.
The exportfs -a command instructs the NFS server to export all directories currently listed in /etc/exports, applying any configuration changes such as the newly added -rw option. Without running this command, the kernel's export table still reflects the old read-only configuration. Clients will not see the updated permissions until the server re-publishes the share via exportfs.
There is no standard Linux NFS command called 'refresh -g nfs'; this is not a valid utility for refreshing NFS exports.
Unmounting and remounting the filesystem on the server affects local mount state, not the exported share permissions advertised to NFS clients.
The mount -o rw command controls how a filesystem is locally mounted on the server, not what permissions the NFS server advertises to remote clients via its export table.
Concept tested: Applying NFS export changes with exportfs
Source: https://man7.org/linux/man-pages/man8/exportfs.8.html
Topics
Community Discussion
No community discussion yet for this question.