nerdexam
Linux_Foundation

LFCS · Question #648

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

The correct answer is D. -a. The -a option for the smbclient command is used to specify a file containing authentication credentials for accessing Samba shares.

Submitted by paula_co· Apr 18, 2026Networking

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

(33 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    3% (1)
  • D
    91% (30)

Why each option

The `-a` option for the `smbclient` command is used to specify a file containing authentication credentials for accessing Samba shares.

A-F

The `-F` option for `smbclient` is not a valid or standard option for specifying a credentials file.

B-c

The `-c` option for `smbclient` is used to execute a command string, not to specify a credentials file.

C-s

The `-s` option for `smbclient` is used to specify a service (share) to connect to, not a credentials file.

D-aCorrect

The `smbclient` command uses the `-a` option (or `--authentication-file`) to read authentication credentials, such as username and password, from a specified file rather than prompting the user or using other methods.

Concept tested: smbclient authentication options

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

Topics

#smbclient#Samba#authentication#credentials file

Community Discussion

No community discussion yet for this question.

Full LFCS Practice