nerdexam
Linux_Foundation

LFCS · 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. To connect to a Samba server as an authenticated user using smbclient, you must specify the username with either the -U or -user option.

Submitted by rohit_dlh· Apr 18, 2026Networking

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

(55 responses)
  • A
    95% (52)
  • B
    2% (1)
  • C
    4% (2)

Why each option

To connect to a Samba server as an authenticated user using `smbclient`, you must specify the username with either the `-U` or `-user` option.

A-userCorrect

The `-user <username>` option explicitly specifies the username that `smbclient` should use for authentication when establishing a connection to a Samba share. This allows users to connect with specific credentials.

B-u

`-u` is not a standard or recognized option for specifying a username in `smbclient`; the correct options are `-U` or `-user`.

C-guest

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

D-password

`-password` is not a valid `smbclient` option for providing a password; passwords are usually prompted for interactively or provided via specific flags like `-P` or `--password` (though `-password` alone is incorrect).

E-UCorrect

The `-U <username>` option is a common shorthand for `-user <username>`, providing the same functionality to specify the username for authenticated `smbclient` connections.

Concept tested: `smbclient` authenticated connection options

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

Topics

#smbclient#SMB/CIFS#Authentication#Command-line options

Community Discussion

No community discussion yet for this question.

Full LFCS Practice