LPI
300-100 · Question #118
After adding a remote CIFS share to /etc/fstab, the share is mounted to the correct place in the file system. There, all files belong to the user and group root and are not read- or writable to any…
The correct answer is B. The mount.cifs options uid, gid, file_mode and dir_mode should be used to specify the ownership. See the full explanation below for the reasoning.
Question
After adding a remote CIFS share to /etc/fstab, the share is mounted to the correct place in the file system. There, all files belong to the user and group root and are not read- or writable to any other users in the system. What should be done in order to permit a distinct local user access to the mounted files?
Options
- AThe option root squash = yes should be added to the share in the Samba servers smb.conf to
- BThe mount.cifs options uid, gid, file_mode and dir_mode should be used to specify the ownership
- CThe user should be added to the local user group smbusers as mount.cifs by default restricts
- DThe mount.cifs command must always be executed by the user who should use the mount
How the community answered
(47 responses)- A9% (4)
- B85% (40)
- C2% (1)
- D4% (2)
Community Discussion
No community discussion yet for this question.