LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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, 11:19 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,562

Rep: Reputation: 37
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, 11: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: 328Reputation: 328Reputation: 328Reputation: 328
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, 11:23 AM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,562

Original Poster
Rep: Reputation: 37
I saw that, but have no idea what the means unfortunately.
 
Old 04-05-2011, 11: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: 328Reputation: 328Reputation: 328Reputation: 328
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, 11:27 AM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,562

Original Poster
Rep: Reputation: 37
oh ok. and that won't bounce all my users connected to that samba share?
 
Old 04-05-2011, 11: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: 328Reputation: 328Reputation: 328Reputation: 328
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, 11:31 AM   #7
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,562

Original Poster
Rep: Reputation: 37
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, 07: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?
 
  


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 08:10 PM
Samba in Debian, smb.conf: smb passwd file = ?????????? henrnorl Linux - Software 1 10-06-2006 10:43 AM
Samba - which smb.conf file? henrnorl Linux - Newbie 4 10-06-2006 08:19 AM
Reinstalling Samba doesn't recover the original /etc/samba/smb.conf Akhran Debian 2 11-11-2005 01:54 AM
Samba start up questions...Setting up share files and smb.conf file Xeroku Linux - Newbie 1 04-17-2003 11:10 PM


All times are GMT -5. The time now is 03:54 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration