I read through the man pages and could not find anything but swat to kill a connection to a samba client. I have the following situation. I have a CD-changer with 6 discs that serves a video archive. Upon magazine insertion I start mounting all 6 discs in row. To be able to eject the magazine again I have to umount each disc. Unfortunatly I get a device busy on the last disc that was accessed. I tried "smbcontrol smbd close-share (sharename/busy drive)" but that did not do it. I can only restart samba (which is not my intention) or I can use swat, click on status and kill the connection to the client. But this is not doable for my kind of configutration since I have to umount the drives through a script. Any suggestions on how I can kill the connection to the client on the command line are greatly appreciated. Andr?.
smbstatus will show you the pids of active connections. Joel On Sun, Feb 02, 2003 at 06:41:33PM +0100, Andr? Weidemann wrote:> Any suggestions on how I can kill the connection to the client on the > command line are greatly appreciated.
Grierson, Garry (UK07)
2003-Feb-03 12:06 UTC
[Samba] howto kill connection to an smbclient
You should be able to use the kill -15 (or kill -9 if you really must!) command to stop the relevant UNIX smbd deamon process. You can find out what process number you need to kill by using the smbstatus command found in your ../samba/bin directory. A relatively simple script could be used to do this.