LPI
300-100 · Question #51
After adding a remote CIFS share to /etc/fstab, the share is mounted to the correct location in the file system. There, all files belong to the user and group root and are not readable or writable…
The correct answer is C. The user should be added to the local user group smbusers, as mount.cifs by default restricts. 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 location in the file system. There, all files belong to the user and group root and are not readable or writable by any other users on the system. What should be done in order to permit distinct local user access to the mounted files?
Options
- AThe option root squash = yes should be added to the share in the Samba server's 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 should always be executed by user who will use the mount afterwards.
How the community answered
(29 responses)- A14% (4)
- B3% (1)
- C79% (23)
- D3% (1)
Community Discussion
No community discussion yet for this question.