LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-05-2011, 10:19 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,646

Rep: Reputation: 46
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?
 
Old 04-05-2011, 10:22 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
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.
 
Old 04-05-2011, 10:23 AM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,646

Original Poster
Rep: Reputation: 46
I saw that, but have no idea what the means unfortunately.
 
Old 04-05-2011, 10:26 AM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

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

Code:
killall -HUP smbd
 
1 members found this post helpful.
Old 04-05-2011, 10:27 AM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,646

Original Poster
Rep: Reputation: 46
oh ok. and that won't bounce all my users connected to that samba share?
 
Old 04-05-2011, 10:30 AM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Existing connections won't be impacted, unless you remove access to resources in the new configuration file.
 
1 members found this post helpful.
Old 04-05-2011, 10:31 AM   #7
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,646

Original Poster
Rep: Reputation: 46
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.
 
Old 03-01-2013, 06:36 AM   #8
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Rep: Reputation: 30
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?
 
Old 03-12-2016, 01:42 PM   #9
WFV
Member
 
Registered: Apr 2012
Location: CA
Distribution: Arch
Posts: 61

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

Last edited by WFV; 03-13-2016 at 12:57 AM.
 
Old 03-12-2016, 02:24 PM   #10
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,106
Blog Entries: 4

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by rjo98 View Post
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
 
Old 03-12-2016, 02:27 PM   #11
astrogeek
Senior Member
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,686
Blog Entries: 1

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
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...)
 
Old 03-13-2016, 12:59 AM   #12
WFV
Member
 
Registered: Apr 2012
Location: CA
Distribution: Arch
Posts: 61

Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by astrogeek View Post
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?
 
Old 03-14-2016, 11:19 AM   #13
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,106
Blog Entries: 4

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by WFV View Post
near-necro or post-mortem?
Neither...like a zombie you can't kill...
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Some /etc/samba/smb.conf file specification in SuSE 10.1 lovelylinux Linux - Networking 1 07-10-2007 07:10 PM
Samba in Debian, smb.conf: smb passwd file = ?????????? henrnorl Linux - Software 1 10-06-2006 09:43 AM
Samba - which smb.conf file? henrnorl Linux - Newbie 4 10-06-2006 07:19 AM
Reinstalling Samba doesn't recover the original /etc/samba/smb.conf Akhran Debian 2 11-11-2005 12:54 AM
Samba start up questions...Setting up share files and smb.conf file Xeroku Linux - Newbie 1 04-17-2003 10:10 PM


All times are GMT -5. The time now is 10:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration