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.
Question
Options
- A-F
- B-c
- C-s
- D-a
How the community answered
(18 responses)- A6% (1)
- D94% (17)
Why each option
The `smbclient` command uses the `-a` option to specify a file containing authentication credentials.
`-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.
`-c` is used to specify a command to execute directly, not a credential file.
`-s` is used to specify a `smb.conf` file to use, not a file containing credentials.
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
Community Discussion
No community discussion yet for this question.