Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-15-2003, 02:06 AM   #1
LQ Newbie
Registered: Feb 2003
Location: Perth Western Australia
Distribution: RedHat 7.0
Posts: 26

Rep: Reputation: 15
Question Starting Samba at startup

At the moment I am starting samba manually by typing:

[root@Linux-server /root]# /usr/sbin/samba start

What do I need to do to start samba at boot time ?

Many thanks
Old 03-15-2003, 05:48 AM   #2
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
ln -s /usr/sbin/samba /etc/rc.d/rc3.d/S99samba

you may want to change the number "99" to something else if you want samba to start in a certain order before/after certain other programs, take a look at /etc/rc.d/rc3.d/ to see what the order is on your computer.
Old 03-15-2003, 06:09 AM   #3
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
Check out:
Getting program to run at boot time.
Old 03-15-2003, 10:19 AM   #4
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
Since you are probably running RedHat (from looking at your info), you should have a startup script within the /etc/rc.d/init.d directory called "smb". If not, there should be one on your system someplace when Samba installed. When you put this script into the /etc/rc.d/init.d directory make sure to apply the correct permissions to the file. Also there is a utility on RedHat called "ntsysv" within the /usr/sbin directory. You need to have root privileges in order to execute this program, but it allows you to select which scripts to load at startup. Good luck man! =)
Old 03-17-2003, 11:10 PM   #5
LQ Newbie
Registered: Feb 2003
Location: Perth Western Australia
Distribution: RedHat 7.0
Posts: 26

Original Poster
Rep: Reputation: 15
Starting Samba at startup

Thanks for your help guys it worked


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
starting processes on startup Henster Linux - Newbie 2 06-28-2005 12:12 PM
starting script on startup darklandz Linux - Newbie 4 06-05-2005 02:51 AM
Starting VNC from Startup Ruler2112 Slackware 6 05-03-2005 03:40 PM
starting programs at startup reksav Linux - Newbie 4 04-03-2005 07:01 PM
starting programs on startup -how? br0k3n Linux - General 3 07-22-2004 05:43 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:13 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