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

Özkan Göksu ozkan.goksu at usishi.com
Fri Feb 23 11:24:19 UTC 2018


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
4- smbcontrol all reload-config or "systemctl reload smbd"
5- zfs destroy dataset

This steps not working anymore because user still won't disconnect share
until service restart.
When I close a share I need to take out users from the share because when
they still use the share I'm getting "busy" error when I try to destroy
dataset.

Any advice please?

*smb.conf*

[Global]
netbios name = DEV2
server string = %h Test Host
workgroup = sm
realm =sm.pvt
security = ADS
server role = member server

idmap config *: backend = tdb
idmap config *: range = 90000001-100000000

winbind cache time = 7200
winbind offline logon = yes
winbind nested groups = yes
winbind use default domain = yes
winbind refresh tickets = yes

idmap config sm.pvt: backend = rid
idmap config sm.pvt: range = 20000-90000000

encrypt passwords = yes
dns proxy = no
strict locking = Auto
oplocks = yes
deadtime = 15

logging = file
max log size = 51200
log level = 2

load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes

unix charset = UTF-8
case sensitive = auto

guest account = nobody
map to guest = Bad User
obey pam restrictions = yes
ntlm auth = no
allow trusted domains = no
client ntlmv2 auth = yes

kernel change notify = yes
panic action = /usr/bin/samba-backtrace
dns update command = /usr/sbin/samba_dnsupdate
acl allow execute always = true
dos filemode = yes
multicast dns register = no
domain logons = no
client use spnego = yes

local master = no
domain master = no
preferred master = no

template shell = /bin/sh
template homedir = /home/%D/%U

max xmit = 65536
max open files = 232040
strict sync = no

include = /etc/samba/shares/ssdpool.test.cifs


*Share conf:*

[test]
path = /ssdpool/test
guest ok =no
browseable = yes
writeable = yes
hide dot files = yes
veto files = /.snapshot/.windows/.mac/.zfs/
use sendfile = no
acl group control = yes
map acl inherit = yes
inherit owner = yes
inherit permissions = yes
inherit acls = yes
vfs objects = acl_xattr streams_xattr aio_pthread
acl_xattr:ignore system acls = yes
write cache size = 131072


More information about the samba mailing list