Does the command line "smbcontrol ALL reload-config" force a connected share to flush parameter ?

Jeremy Allison jra at samba.org
Wed Dec 14 16:54:04 UTC 2016


On Wed, Dec 14, 2016 at 07:57:06AM +0000, Fengwei wrote:
> 
> Hi all:
> Thanks for your attention. I have a question about smbcontrol.
> A user has read and write access to a share and already connected to the share,
> then I delete the user from the write list in smb.conf and reload the config (use the command line "smbcontrol ALL reload-config"  ),
> but it doesn't work, the user still has read and write access to the share.
> Doesr the command line "smbcontrol ALL reload-config" force a connected share to flush parameter ?
> The code comment in reload_services said set_current_service "this forces service parameters to be flushed", does this already been implemented?

Whilst the user is connected, nothing you do to the
share parameters will affect them.

You have to terminate the user session, and then
when they reconnect they'll get the changes you
made.



More information about the samba-technical mailing list