Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-16-2002, 08:08 AM   #1
Registered: Aug 2001
Location: Buffalo, NY
Distribution: Red Hat
Posts: 83

Rep: Reputation: 15
start Samba on boot

Very simple question here - how do I start Samba on boot? I tried adding a script file called 'samba' to the /etc/rc.d/init.d/ directory, but i'm not sure (a) what that's really used for, and (b) if there are specific things that my script has to have in order for it to work there. it contained only a single line:

/usr/sbin/samba start

but samba didn't start on boot. i know this has got to be pretty simple. suggestions? i'd really appreciate your help, thanks!
Old 01-16-2002, 09:07 AM   #2
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
you should have a system editor like sysvinit to tkinit which you can swith servers etc.. on and off...but manually...

you shoulod alreay have a /etc/init.d/smb file which is samba. you nee to link this script into the directory relating tou rour normal runlevel:

ln -s /etc/rc.d/init.d/smb /etc/rc.d/rc3.d/S80smb

which will load samba fairly late in the boot (i.e. after network is loaded...) on runlevel 3, which is normal console login.
Old 01-16-2002, 09:55 AM   #3
LQ Newbie
Registered: Jul 2001
Location: Arizona
Distribution: RH7.3 Kernal 2.4.2
Posts: 22

Rep: Reputation: 15
I do not curently have smb installed. However I have done this in the past successfully. It would be much simpler to go into Linuxconf and select the control tab. In there you will see Control Service Activity. Look for SMB in the list of services. I think that when you install smb it automatically adds it to the list, but I may be mistaken. Anyway assuming that it is in the list of services, all you need to do is click on it and change the startup from manual to automatic. You can make other changes like telling it at what point you want it to load, before the network or after etc..., but most of that is done for you.

Now if it is not in the list of services, then all you need to do is add it in the Control files & Systems, Create Linux addons. It is really simple, just fill in the appropriate command lines and anything else you need. (Keep it simple) Then go back into the Control Service Activity and change it to automatic.
Old 01-16-2002, 10:17 AM   #4
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
if you're running redhat, try running "ntsysv". this will let you configure the daemons and services you want to be activated at boot. samba should be available in the list.

simple as that. :-)
Old 04-23-2004, 09:07 AM   #5
LQ Newbie
Registered: Dec 2003
Posts: 1

Rep: Reputation: 0

That was really slick, Syncrm and helped a ton...thanks for your expertise (and I didn't even have to ask for it


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
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
start samba on boot dvdljns SUSE / openSUSE 1 05-18-2005 11:05 AM
Samba filesytem doesnt start on boot mpooley Linux - Networking 5 11-29-2002 04:53 PM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM
Making sure Samba and Apache Start on boot. pmlabrier Linux - Newbie 1 09-25-2000 09:13 PM > Forums > Linux Forums > Linux - Networking

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

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