The share is still accessible to client(like Windows7) as i deleted the share in smb.conf when a samba session about this share exists

Richard Sharpe realrichardsharpe at gmail.com
Mon Jun 8 07:57:36 MDT 2015


On Mon, Jun 1, 2015 at 7:32 PM,  <xiangzhou at uniview.com> wrote:
>
> Hi all,
> as the subject shows i got a problem which confused me for weeks.
>
>          There is a share on the server like
> [gg]
>         path = /cluster/volume1/gg
>         valid users = test
>         write list = test
>         read only = Yes
>         guest ok = No
> On the client (Windows7), i build a session like
>
> C:\Users\******>net use
> *******
> ---------------------------------------------------------------------------
> OK           Z:        \\191.168.64.163\gg       Microsoft Windows Network
>
> Then, on the sever i delete the share like
> #[gg]
> #      path = /cluster/volume1/gg
> #      valid users = test
> #      write list = test
> #      read only = Yes
> #      guest ok = No
>
>         but, on the client i can still access the share. this may brings
> security problems when the share is allowed to access.
>
> Any help would be  appreciated.

This is a consequence of the fact that the user is connected and got
access to the share when it was defined.

You will have to manually disconnect such users. See smbcontrol,
especially its close-share command. That might help.

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)


More information about the samba-technical mailing list