The smbclient utility is part of the Samba suite and is used to access SMB/CIFS resources from a Linux/Unix system. When invoked with the -L (list) option followed by a server name, it queries the specified server and displays the list of shares it is offering, without connecting to any particular share. Thus smbclient -L FileSrv1 is the correct syntax to enumerate the shares on FileSrv1. The other listed commands either do not exist (smbshares) or perform unrelated functions: smbcontrol sends control messages to Samba daemons, smbstatus reports current connections/locks on the local Samba server, and smbmount is used to mount an SMB share rather than list available shares.
Community Discussion