Samba is a free software implementation of Microsoft’s networking system. Samba provides file and print services for various Microsoft Windows clients, it can integrate with a Windows Server domain, either as a Primary Domain Controller (PDC) or as a Domain Member. It can also be part of an Active Directory domain.
You need to use smbstatus command, which report on current Samba connections. It is a very simple program to list the current Samba connections. In order to display current connection just type command:
Display more/detailed information:
$ smbstatus -b
Display verbose output:
$ smbstatus -v
Display only list of shares:
$ smbstatus -sShare this tutorial on: