[Samba] Regarding Samba shares

Rowland Penny rpenny at samba.org
Wed Jun 4 16:07:19 UTC 2025


On Wed, 4 Jun 2025 15:03:16 +0000
"., Srikanth N S via samba" <samba at lists.samba.org> wrote:

> Hi,
> 
> 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?

Yes

Reloading the config has no effect on already established connections,
to break these you need to either:

Stop Samba on the server.

Disconnect the client

Or as Arnaud has already pointed out, run 'smbcontrol close-share smbd'.

Please read 'man smbcontrol' for further information.

Rowland



More information about the samba mailing list