Is it possible to see list of who is connected to an SMB share?

seanm

Guru
Joined
Jun 11, 2018
Messages
570
Hi all,

Is it possible to see list of who is connected to an SMB share? And to disconnect (cleanly or forcefully) some/all of the users? I'm considering replacing a macOS Server file sharing box with FreeNAS, and I don't see anything like the attached screenshot.

Thanks,

Sean
 

Attachments

  • SMB-connected.png
    SMB-connected.png
    32.1 KB · Views: 779
Joined
Jul 3, 2015
Messages
926
from the CLI run smbstatus -b then kill the PID you want shot of
 

seanm

Guru
Joined
Jun 11, 2018
Messages
570
Thanks for your reply, quite helpful. I guess there is no GUI for this? Not too important, the -b status output is useful enough.

But killing the process does not seem to cause a disconnection of the client. I am connected from macOS, then kill the associated pid, but I'm still able to navigate into folders from the Finder. Running smbstatus again just shows a new pid associated.
 

seanm

Guru
Joined
Jun 11, 2018
Messages
570
Small follow up: killing the process is still useful when changing share settings at least. The client may reconnect quickly, but at least then it sees things like permission changes.
 
Top