nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #623

LFCS Question #623: Real Exam Question with Answer & Explanation

The correct answer is A: -user. 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

Explanation

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

Common mistakes.

  • B. -u is not a standard or recognized option for specifying a username in smbclient; the correct options are -U or -user.
  • C. The -guest option is used to connect as an unauthenticated guest, which is the opposite of connecting as an authenticated user.
  • D. -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).

Concept tested. smbclient authenticated connection options

Reference. 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 PracticeBrowse All LFCS Questions