LPI
117-300 · Question #77
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
(56 responses)- A14% (8)
- B75% (42)
- C4% (2)
- D7% (4)
Community Discussion
No community discussion yet for this question.