nerdexam
CompTIA

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.

Server Side & Network Concepts

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

XK0-004 question #530 exhibit

Options

  • AOption A
  • BOption B
  • COption C
  • DOption D
  • EOption E

How the community answered

(29 responses)
  • A
    7% (2)
  • C
    86% (25)
  • D
    3% (1)
  • E
    3% (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.

AOption A

Option A uses incorrect syntax or parameter formatting that does not properly specify the server name, share name, or username required for the connection.

BOption B

Option B does not correctly form the smbclient UNC path or authentication arguments needed to connect to //accounting.local/reports as admin.

COption CCorrect

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.

DOption D

Option D uses an incorrect command structure or flags that would prevent a successful authenticated connection to the specified Samba share.

EOption E

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

#Samba#smbclient#SMB shares#file sharing

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice