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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-27-2010, 12:25 PM
|
#1
|
Senior Member
Registered: Jun 2009
Posts: 1,795
Rep:
|
Does a new samba share require a samba restart
Do you have to restart Samba when you add a new share to the smb.conf file, or does it check every so often for new mounts and make them available?
|
|
|
01-27-2010, 02:32 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,428
|
Quote:
Originally Posted by rjo98
Do you have to restart Samba when you add a new share to the smb.conf file, or does it check every so often for new mounts and make them available?
|
You have to do an "/etc/init.d/smb reload", to (obviously), reload the config, to pick up or remove shares. It doesn't automatically do it.
|
|
|
01-27-2010, 03:45 PM
|
#3
|
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
|
ok, thanks. wish there was a way to get it to pick up the new one without stopping and starting the whole thing since i have other people connected to other shares.
|
|
|
01-27-2010, 04:53 PM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,428
|
Quote:
Originally Posted by rjo98
ok, thanks. wish there was a way to get it to pick up the new one without stopping and starting the whole thing since i have other people connected to other shares.
|
I don't think it'll drop the connected users off by doing a reload. A re start would, but I don't think the reload will effect anything.
You could just try it, and listen for the wails of your users, though.
|
|
|
01-27-2010, 04:54 PM
|
#5
|
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
|
haha, i thought a reload and restart did the same thing, not that i really have anything to base it on. I can give it a shot.
|
|
|
01-27-2010, 07:00 PM
|
#7
|
Member
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488
Rep:
|
I've done samba restarts that generally go unnoticed by my users. YMMV, of course.
|
|
|
01-28-2010, 02:08 PM
|
#8
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,428
|
Quote:
Originally Posted by rjo98
|
According to that, it's the restart that kicks them off. A reload (or force-reload), just re-reads the config.
|
|
|
01-28-2010, 02:38 PM
|
#9
|
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
|
OK, I must have read it wrong, I thought the sentences above the commands went with the commands below them in that example they showed.
Save & exit the file
Ctrl o
Ctrl x
then expand the template
expand-template /etc/smb.conf
then restart the samba server so your template is active. Note that this will momentarily stop samba, so ensure that all users have disconnected from & stopped using all shares first
/etc/init.d/smb reload
then restart smb
/etc/init.d/smb restart
|
|
|
01-28-2010, 04:45 PM
|
#10
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,428
|
Quote:
Originally Posted by rjo98
OK, I must have read it wrong, I thought the sentences above the commands went with the commands below them in that example they showed.
|
Those were examples, and the CTRL O/X are editor commands. If you've already edited your smb.conf file, you're ready
Quote:
/etc/init.d/smb reload
/etc/init.d/smb restart
|
Those are the commands that reload and restart Samba. You need to be root to run them.
|
|
|
All times are GMT -5. The time now is 05:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|