nerdexam
CompTIA

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.

Shells, Scripting and Data Management

Question

Which smbclient option is used when connecting to a server as an authenticated user? (Select TWO correct answers.)

Options

  • A-user
  • B-u
  • C-guest
  • D-password
  • E-U

How the community answered

(46 responses)
  • A
    87% (40)
  • B
    2% (1)
  • C
    4% (2)
  • D
    7% (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.

A-userCorrect

The `smbclient` command accepts the `-user` option, followed by the desired username, to specify the credentials for an authenticated connection to a Samba share.

B-u

The `-u` (lowercase u) option is not a standard or documented parameter for specifying the username in the `smbclient` command.

C-guest

The `-guest` option is used to connect to a share as a guest, which is the opposite of connecting as an authenticated user.

D-password

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.

E-UCorrect

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

#smbclient#command options#user authentication

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice