LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to make samba read updated smb.conf file without restarting samba (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-make-samba-read-updated-smb-conf-file-without-restarting-samba-873133/)

rjo98 04-05-2011 10:19 AM

How to make samba read updated smb.conf file without restarting samba
 
I just made a minor change to the smb.conf file, is there a way to force the samba service to read that change without restarting samba completely?

macemoneta 04-05-2011 10:22 AM

From 'man smbd':

Quote:

Sending the smbd a SIGHUP will cause it to reload its smb.conf configuration file within a short period of time.

rjo98 04-05-2011 10:23 AM

I saw that, but have no idea what the means unfortunately.

macemoneta 04-05-2011 10:26 AM

It means that you can tell samba to reload its configuration by issuing the command:

Code:

killall -HUP smbd

rjo98 04-05-2011 10:27 AM

oh ok. and that won't bounce all my users connected to that samba share?

macemoneta 04-05-2011 10:30 AM

Existing connections won't be impacted, unless you remove access to resources in the new configuration file.

rjo98 04-05-2011 10:31 AM

ok, thanks. all i did was add some more allowed IPs, and i'm not sure how long samba takes by default to reread the smb.conf, so i'd like to force it.

SBN 03-01-2013 06:36 AM

Hi just a question regarding this, how about if i have so many smbd -D process running will i have to killhup each or just one?


All times are GMT -5. The time now is 06:18 PM.