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.
Question
Options
- A-F
- B-c
- C-s
- D-a
How the community answered
(33 responses)- A3% (1)
- B3% (1)
- C3% (1)
- D91% (30)
Why each option
The `-a` option for the `smbclient` command is used to specify a file containing authentication credentials for accessing Samba shares.
The `-F` option for `smbclient` is not a valid or standard option for specifying a credentials file.
The `-c` option for `smbclient` is used to execute a command string, not to specify a credentials file.
The `-s` option for `smbclient` is used to specify a service (share) to connect to, not a credentials file.
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
Community Discussion
No community discussion yet for this question.