nerdexam
CompTIA

LX0-104 · Question #648

Which option is used when running smbclient with a file containing user credentials?

The correct answer is D. -a. The smbclient command uses the -a option to specify a file containing authentication credentials.

Shells, Scripting and Data Management

Question

Which option is used when running smbclient with a file containing user credentials?

Options

  • A-F
  • B-c
  • C-s
  • D-a

How the community answered

(18 responses)
  • A
    6% (1)
  • D
    94% (17)

Why each option

The `smbclient` command uses the `-a` option to specify a file containing authentication credentials.

A-F

`-F` is not a standard `smbclient` option for credentials; it might be used for printing a fingerprint in some contexts but not for credential files.

B-c

`-c` is used to specify a command to execute directly, not a credential file.

C-s

`-s` is used to specify a `smb.conf` file to use, not a file containing credentials.

D-aCorrect

When using `smbclient`, the `-a FILE` option is used to read a username and password (or credentials in a specific format) from the specified `FILE` instead of prompting the user or reading from command-line arguments. This is useful for scripting or providing credentials securely.

Concept tested: smbclient command-line options, credential file

Source: https://www.samba.org/samba/docs/current/manpages/smbclient.1.html

Topics

#smbclient#command-line tools#credentials

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice