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

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.

Advertisement

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

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🤠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.

3 comments… add one
  • farshid Nov 28, 2012 @ 10:25

    smbstatus -b does not show detailed info, but brief info

    F

  • Anbarasu Mar 12, 2013 @ 10:58

    Hi,

    Is there a way to monitor particular samba share and its CPU,memory utilization ..

  • dileep Jul 8, 2014 @ 6:32

    How can i enable the samba logs so can i check the each users logs that accessing my samba share folders?

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.