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

ww m-pubsyssamba pubsyssamba at bbc.co.uk
Fri Apr 30 10:48:24 GMT 2004


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.


More information about the samba mailing list