Web lists-archives.com

Re: [Samba] smbcontrol reload & close-share not working like previous version




On Fri, 23 Feb 2018 13:24:19 +0200
Özkan Göksu via samba <samba@xxxxxxxxxxxxxxx> wrote:

> Hello.
> 
> I just upgrade my kernel, smbd and changed my smb.conf.
> (4.14.12-1-Arch" to "4.14.19-1-lts") "samba 4.7.4-1"
> But now, "reload smbd" and "close-share" can not drop connected users
> to share. Because of that I have to restart smbd service for destroy
> a share right now.
> But it was working previous version and I don't know what is wrong
> right now. As you know, restarting SMBD affects other shares. This is
> dirty way to an easy job.
> 
> 
> When I try to destroy a share I follow these steps:
> 
> 1- Edit smb.conf "delete include line"
> 2- Delete samba share conf (what is included)
> 3- smbcontrol smbd close-share

The syntax for 'close-share' is:

smbcontrol smbd close-share 'sharename'

Or

smbcontrol smbd close-share '*'

For all shares

See 'man smbcontrol' for more info

Rowland

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba