that group still has access to the share. At this point I have to restart.
Post by Sabuj PattanayekI'm using 4.1.5, but the reload seems to be very inconsistent. Initially
it looks like the problem was that I had defunct security mask parameters
in include files above the one I was changing which was somehow throwing an
"admin users = " parameter in an include file farther down in the main
smb.conf file. In the log file it said it was reading the section I was
modifying in the include file, but if I updated the "admin users = "
parameter for that share it wouldn't take unless I restarted smbd . After I
got rid of the defunct security mask parameters the reload on the updated
admin users = parameter seems to sort of work. What I mean is that if I add
a group to the admin users parameter and then do a reload (or a few reloads
for good measure) I can then connect because of the add group in admin
users. However, if I comment the parameter out and reload several times I
can still connect to the share even after multiple disconnects and
reconnects. The only thing that seems to "remove" the authentication
information is a full restart of smb, then I can longer connect to the
share as was behavior I was looking for.
On Thu, Mar 13, 2014 at 3:03 PM, Marc Muehlfeld <samba at marc-muehlfeld.de
Post by Marc MuehlfeldHello Sabuj
I noticed that smbcontrol smbd reload-config or service smbd reload
Post by Sabuj Pattanayekdoesn't
reload include files. Is there anyway to get a reload to reload files that
have been included from the main smb.conf ? Otherwise it only looks like
restart works, but that causes connections to reset, even in a
ctdb/clustered environment . The only other option it looks like is to just
put everything into the smb.conf file ?
I use include files for printer and shares in production (3.6.23 and
4.1.6) and always do a "smbcontrol all reload-config", what works.
I quickly did a test here on my testsystem (4.1.5) and renamed a
printer, that is in a separate file which is included in smb.conf. Works.
Which version do you use?
Increase the loglevel to at least 4, then do a
# smbcontrol all reload-config
# fgrep include /var/log/samba/*
10.99.0.70.log: doing parameter include = /etc/samba/shares.conf
10.99.0.70.log: doing parameter include = /etc/samba/printers.conf
nmbd.log: doing parameter include = /etc/samba/shares.conf
smbd.log: doing parameter include = /etc/samba/shares.conf
smbd.log: doing parameter include = /etc/samba/printers.conf
winbindd.log: doing parameter include = /etc/samba/shares.conf
Regards,
Marc