How do I find the current connections to a Samba server?

Posted on in Categories last updated March 28, 2006

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:

$ smbstatus

Display more/detailed information:

$ smbstatus -b

Display verbose output:

$ smbstatus -v

Display only list of shares:

$ smbstatus -s

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

3 comment

Leave a Comment