300-300 practice question 5 of 15
Which smbclient invocation displays a list of the available SMB shares on the remote Samba server FileSrv1?
Full set: 53 questionsThe smbclient utility is the primary command-line tool for accessing SMB/CIFS resources from a Linux client. The -L (or --list) option is specifically designed to query a remote host and retrieve a list of its available services, which includes shared directories (shares) and printers. When invoked as smbclient -L FileSrv1, the command attempts to connect to the server named FileSrv1 and requests its "browse list," effectively listing all advertised shares that the user has permission to see.
A. smbcontrol is a utility for sending control messages to local smbd, nmbd, or winbindd daemons, not for querying remote servers.
B. smbshares is not a standard command in the Samba software suite.
C. smbstatus is a server-side tool used to report on current connections and locked files on the local Samba server.
D. smbmount is an obsolete command for mounting SMB filesystems, superseded by mount.cifs, and it does not list shares.
1. Samba Official Documentation (Man Page): The smbclient(1) man page explicitly details the function of the -L option.
Source: Samba.org, smbclient(1) Man Page.
Reference: Under the "OPTIONS" section, it states: -L|--list=HOST "This option allows you to get a list of shares available on a host."
Link: https://www.samba.org/samba/docs/current/man-html/smbclient.1.html
2. University Courseware: Course materials for system administration frequently cover Samba and its utilities.
Source: Rochester Institute of Technology, CSEC-464: Network Services and Security Lab Manual.
Reference: Lab 04: Samba, Section "Enumerating Samba". The document instructs: "To list the shares on a server, use the -L option: smbclient -L ".
Link: https://www.cs.rit.edu/~csec464/lab/04samba.html
3. Samba Official Documentation (Man Page): The smbstatus(1) man page clarifies its purpose, distinguishing it from smbclient.
Source: Samba.org, smbstatus(1) Man Page.
Reference: The description states, "smbstatus is a very simple program to list the current Samba connections." This confirms it is a server-side status tool.
Link: https://www.samba.org/samba/docs/current/man-html/smbstatus.1.html
Keep practicing
Take the free 300-300 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 300-300 practice questions
- Question 1In case the following parameters are set in a Samba file share configuration: create mask…
- Question 2Which of the following commands adds a forward DNS record named fileserver01 pointing to …
- Question 3Which of the following commands terminates all running instances of the Samba daemon hand…
- Question 4Given a proper network and name resolution setup, which of the following commands establi…
- Question 7Which of the following statements are true regarding the smbpasswd command? (Choose two.)
- Question 8Which of the following names identify services within a SSSD configuration file? (Choose …
