[Samba] Can I reconfigure Samba share without restart smb service?

Ryan Novosielski novosirj at umdnj.edu
Wed May 12 08:23:30 GMT 2004


AFAIK, Samba will notice a change on its own as well.

---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
|$&| |__| |  | |__/ | \| _|  | novosirj at umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630

On Fri, 30 Apr 2004, ww m-pubsyssamba wrote:

> Everytime I add or remove some samba shares, I must restart smb service to take effect. Is there anyway to reconfig it without restart?
>
>
> >> Yes there is, you must "kill -HUP" your parent smbd process, either work out which pid it is from running ps -aef (-aux or whatever
> for your UNIX platform) or cat /sambainstalldir/var/locks/smbd.pid file which contains the PID, then "kill -HUP YourPID"
> For already established client connections they may not see the changes until they disconnect but for new connections your
> smb.conf/share changes will be visable,
>
> cheers Andy.
>
> <<
>
> BBCi at http://www.bbc.co.uk/
>
> This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically
> stated.
> If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in
> reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
>


More information about the samba mailing list