File locks when restarting smb

Mike Fedyk mfedyk at matchmail.com
Tue Apr 17 23:40:27 GMT 2001


On Tue, Apr 17, 2001 at 11:25:55AM -0400, MCCALL,DON (HP-USA,ex1) wrote:
> Hello Simon,
> Samba is NOT going to preserve file locking information across a restart,
> hence your problems.
> Rather than restarting samba when you add a share, it should be sufficient
> to issue the following command:
>     killall -HUP smbd
> to force all the smbd daemons to re-read the smb.conf file.

This will take a while to take affect if there is high load from that user.
In some cases the smbd won't even restart itself it there is too much load.

Here's what I do:

look in `smbstatus -S` for that user and find the pid

`smbstatus|grep pid` and find open files for that user

ask user to close files

after files closed, kill pid

now user has new share(s)

mike




More information about the samba mailing list