[Samba] Regarding Samba Shares
., Srikanth N S
srikanth.nagasubbaraoseetharaman at hpe.com
Wed Jun 4 15:02:18 UTC 2025
Thanks Arnaud. We will try "smbcontrol close-share"
From: samba <samba-bounces at lists.samba.org> on behalf of Arnaud FLORENT via samba <samba at lists.samba.org>
Date: Wednesday, 4 June 2025 at 5:46 PM
To: samba at lists.samba.org <samba at lists.samba.org>
Subject: Re: [Samba] Regarding Samba Shares
Hi
Le 04/06/2025 à 11:54, ., Srikanth N S via samba a écrit :
> Hi,
>
> This is regarding Samba shares. We have the following queries
>
>
> 1. Even if we remove the Samba share and reload config, Samba Client (Windows client) continue to have access to the Share until the Samba client is unmounted or Samba service is restarted. Is this expected behavior?
> 2. Is there a way to evict Samba clients connected to Samba share or associated to a particular User?
you could try "smbcontrol close-share" command (see man smbcontrol)
close-share
Order smbd to close the client connections to the named
share. Note that this doesn't affect client connections to any other
shares. This
message-type takes an argument of the share name for which
client connections will be closed, or the "*" character which will close
all currently
open shares. This may be useful if you made changes to the
access controls on the share. This message can only be sent to smbd.
--
Arnaud FLORENT
IRIS Technologies
--
To unsubscribe from this list go to the following URL and read the
instructions: https://urldefense.com/v3/__https://lists.samba.org/mailman/options/samba__;!!NpxR!mj-S1XoKYnK-2jeqeAI1ecSkqKHnnAmxYqDz8IHYq5zIRECGEvmp9WERoR4xL8n4ARnVEO4vUgpXP9TDKKe2ZWK1iAbh8hwQ$<https://urldefense.com/v3/__https:/lists.samba.org/mailman/options/samba__;!!NpxR!mj-S1XoKYnK-2jeqeAI1ecSkqKHnnAmxYqDz8IHYq5zIRECGEvmp9WERoR4xL8n4ARnVEO4vUgpXP9TDKKe2ZWK1iAbh8hwQ$>
More information about the samba
mailing list