To find the current connections to a Samba server, you can use the "smbstatus" command. "smbstatus" is a command-line utility that allows you to view the status of the Samba server, including the active connections and the shared resources.
To use "smbstatus", follow these steps:
smbstatusSourceal.www:utturi.com
Samba version 4.11.5 PID Username Group Machine Protocol Version Encryption Signing ---------------------------------------------------------------------------------------------------------------------------------------- 8892 user1 users 192.168.1.100 (ipv4:192.168.1.100:49597) SMB3_11 - - 8903 user2 users 192.168.1.101 (ipv4:192.168.1.101:49598) SMB3_11 - -
You can also use the "-b" option to show the list of shared resources and the clients connected to them. For example:
smbstatus -b
This will display a list of shared resources and the clients connected to them, along with the details of the connection (e.g., IP address, protocol version, etc.). Consult the documentation of "smbstatus" for more information on how to use this utility.