XK0-004 · Question #530
An administrator needs to copy files from a Samba share where the server name is accounting. local, the share is reports, and the username is admin. Assuming local directories exist, which of the foll
The correct answer is C. Option C. Connecting to a Samba share with smbclient requires the correct UNC path format and the -U flag to specify the username.
Question
An administrator needs to copy files from a Samba share where the server name is accounting. local, the share is reports, and the username is admin. Assuming local directories exist, which of the following commands would connect to the share?
Exhibit
Options
- AOption A
- BOption B
- COption C
- DOption D
- EOption E
How the community answered
(29 responses)- A7% (2)
- C86% (25)
- D3% (1)
- E3% (1)
Why each option
Connecting to a Samba share with smbclient requires the correct UNC path format and the -U flag to specify the username.
Option A uses incorrect syntax or parameter formatting that does not properly specify the server name, share name, or username required for the connection.
Option B does not correctly form the smbclient UNC path or authentication arguments needed to connect to //accounting.local/reports as admin.
The correct smbclient syntax is 'smbclient //accounting.local/reports -U admin', which specifies the server and share using forward-slash UNC notation and authenticates with the -U flag. This command establishes an interactive SMB session to the reports share on the accounting.local server as the admin user, meeting all requirements stated in the scenario.
Option D uses an incorrect command structure or flags that would prevent a successful authenticated connection to the specified Samba share.
Option E uses incorrect syntax or an incompatible tool that would not successfully connect to the named Samba share with the admin credentials.
Concept tested: smbclient command syntax for Samba share access
Source: https://www.samba.org/samba/docs/current/man-html/smbclient.1.html
Topics
Community Discussion
No community discussion yet for this question.
