43.6. Viewing and Disconnecting Clients

Every client that is accessing a file or printer share on your system has a connection to the Samba server, and those connections can be viewed using this module. Clients may also lock files that they have open for editing, which prevents others from opening them. One of the server's tasks is the maintenance of these locks, which are associated with sessions and viewable. If a client crashes without properly disconnecting, any locks that it holds will remain until the TCP connection times out, which can take a while. For this reason, the module allows you to kill client sessions and thus release their locks.

To view and delete client sessions, follow these steps:

1.
On the module's main page, click on the View all connections link above or below the table of shares to bring up a list of all connections to the server.

You can also click on a printer or file share and then on the View Connections button on its editing page to display a list of only connections to that particular share.

2.
Either way, the page that appears will list the shares currently in use and show the name of the connecting user, the host from whom he connected, the time of connection, and any locked files for each share. In the left-most column is the ID of the Samba server subprocess that is handling this connection. Generally, multiple connections from the same client system to different shares will be handled by one process.

3.
To kill a process and thus break all the connections that it is handling, click on its process ID in the first column. Any locks held by the client will be released, freeing the files for use by others.

You should only kill the connections of clients that have really crashed, as killing the session for an active client may cause any files that it has open to be corrupted. It is generally safe, however, to kill a connection to a Windows client with no files open, as it will be immediately and transparently re-established by the client when a file on the share is next opened.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.180.68