LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
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: 344Reputation: 344Reputation: 344Reputation: 344
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
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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: 344Reputation: 344Reputation: 344Reputation: 344
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
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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: 344Reputation: 344Reputation: 344Reputation: 344
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
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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: somehow, somewhere
Distribution: Arch
Posts: 197

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
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
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
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,266
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
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: somehow, somewhere
Distribution: Arch
Posts: 197

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
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
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.
Old 06-30-2021, 04:43 AM   #14
Lestrad
Member
 
Registered: Mar 2015
Posts: 43

Rep: Reputation: Disabled
Necro? Long live zombies!

I say let's keep all them zombies walking and even invite 'em in for a good meal with a good bottle of wine from time to time. As long as the info shared is good and not too arcane, why not? Do we stop listening to Monteverdi or Fats Domino just because they're dead?
 
1 members found this post helpful.
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration