How to remotely disconect user from samba
- From: Josh Kelley <joshkel (at) gmail.com>
- Date: Mon, 6 Feb 2006 13:32:01 -0500
On 2/6/06, Maurizio Faccio <Maurizio.Faccio (at) merbe.com.uy> wrote:
> I need to disconnect from the server a user that is using files from the
> samba server to upgrade that files. How can i remotely disconnect that
> conection to the server
smbcontrol smbd close-share <sharename> can close all clients using a
particular share.
kill pid-of-smbd-process can close a particular client's connection,
but it may not give the smbd process or the client a chance to
properly shut things down.
However, either command may not do much good, because Windows
automatically reconnects to the server if it needs to.
Linux/Unix file semantics let you replace files while they're in use;
whoever's using the old version of the files continues to see the old
files, and when the client closes, the old files are automatically
deleted. (This is handled transparently by the operating system.) If
you're upgrading the files from Linux/Unix instead of over Samba, you
shouldn't need to worry about disconnecting users.
Josh Kelley
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba