LPIC-3 Exam 300 (Mixed Environments) — Question 4
After successfully connecting to a remote CIFS share using smbclient, the command mget MyFiles is issued to retrieve the folder MyFiles, including all of its contents. Instead of transferring the folder, smbclient returns the error:
NT_STATUS_NO_SUCH_FILE listing \MyFiles
What should be done in order to download the contents of the folder?
Answer options
- A. The command recurse should be used to toggle recursion for mget and mput.
- B. To provide a target for the file transfer, the local folder MyFiles has to be created in advance.
- C. The command rget should be used instead of mget to perform recursive operations.
- D. The server has to support recursion for the given share which, on Samba, is enabled by setting recursion = true.
- E. smbclient should be used invoked with the ""recurse or ""r parameter.
Correct answer: D
Explanation
The correct answer is D because Samba must be configured to allow recursion for the share in order to use mget for downloading a directory's contents. Options A, B, C, and E are incorrect as they either do not address the underlying server configuration issue or suggest commands that do not effectively resolve the problem.