Салтаев Дементий Петрович
2003-Jan-27 10:42 UTC
[Samba] How forcly disconnect unwanted user?
Hello Samba Team! I have a Samba fileserver installed on my network. Sometime I have a problem. There are some irresponsible users, who holds their network connections for no purpose. I want to disconnect forcedly such users . But I do not know how do it. Help me, please! Dementiy P. Saltaev, "Svyaztransneft", Volgograd, Russia, 01.27.2003; 13:41. -------------- next part -------------- HTML attachment scrubbed and removed
I haven't tried this, but you can use smbstatus to get the pid of the smbd supplying the services to those users, then kill -15 pid. Since the output includes when the connection was made, you could write a bash script or whatever and kill connections older than a certain date or belonging to certain users. Joel Mon, Jan 27, 2003 at 01:41:09PM +0300, ??????? ???????? ???????? wrote:tOn Mon, Jan 27, 2003 at 01:41:09PM +0300, ??????? ???????? ???????? wrote:> Hello Samba Team! > > I have a Samba fileserver installed on my network. Sometime I have a problem. There are some irresponsible users, who holds their network connections for no purpose. I want to disconnect forcedly such users . But I do not know how do it. Help me, please! > > Dementiy P. Saltaev, > "Svyaztransneft", Volgograd, Russia, > 01.27.2003; 13:41.