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?

WFV 03-12-2016 01:42 PM

Three years later, you probably figured it out, usually killing one of them will kill all (from htop)

JockVSJock 03-12-2016 02:24 PM

Quote:

Originally Posted by rjo98 (Post 4314659)
I saw that, but have no idea what the means unfortunately.

sighup commands

http://tldp.org/LDP/Bash-Beginners-G...ect_12_01.html

List of all kill commands

Code:


kill -l


astrogeek 03-12-2016 02:27 PM

Note that this is near-necro, but hopefully provides useful info for some.

(WFV replied to a 3-year dead post, which was itself a reply to a 2-year old sleeper, JVJ replied to a 5 year old corpse...) ;)

WFV 03-13-2016 12:59 AM

Quote:

Originally Posted by astrogeek (Post 5514419)
Note that this is near-necro, but hopefully provides useful info for some.

(WFV replied to a 3-year dead post, which was itself a reply to a 2-year old sleeper, JVJ replied to a 5 year old corpse...) ;)

near-necro or post-mortem?

JockVSJock 03-14-2016 11:19 AM

Quote:

Originally Posted by WFV (Post 5514579)
near-necro or post-mortem?

Neither...like a zombie you can't kill...


All times are GMT -5. The time now is 06:33 AM.