LX0-104 · Question #623
Which smbclient option is used when connecting to a server as an authenticated user? (Select TWO correct answers.)
The correct answer is A. -user E. -U. When connecting to a server as an authenticated user, smbclient uses either the -U or -user option to specify the username for authentication.
Question
Options
- A-user
- B-u
- C-guest
- D-password
- E-U
How the community answered
(46 responses)- A87% (40)
- B2% (1)
- C4% (2)
- D7% (3)
Why each option
When connecting to a server as an authenticated user, `smbclient` uses either the `-U` or `-user` option to specify the username for authentication.
The `smbclient` command accepts the `-user` option, followed by the desired username, to specify the credentials for an authenticated connection to a Samba share.
The `-u` (lowercase u) option is not a standard or documented parameter for specifying the username in the `smbclient` command.
The `-guest` option is used to connect to a share as a guest, which is the opposite of connecting as an authenticated user.
The `-password` option is not a standard `smbclient` parameter for directly specifying a password on the command line; passwords are typically prompted for interactively or managed via secure environment variables.
The `smbclient` command accepts the `-U` (uppercase U) option as a shorthand for `-user`, followed by the username, to specify the user for authentication.
Concept tested: smbclient authentication options
Source: https://www.samba.org/samba/docs/current/manpages/smbclient.1.html
Topics
Community Discussion
No community discussion yet for this question.