≡ Menu

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.

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

Share this tutorial on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:



{ 3 comments… add one }
  • farshid November 28, 2012, 10:25 am

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

    F

  • Anbarasu March 12, 2013, 10:58 am

    Hi,

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

  • dileep July 8, 2014, 6:32 am

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

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">


   Tagged with: