Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-25-2003, 03:09 PM   #1
Registered: Jan 2003
Location: EU (UK)
Distribution: Ubuntu 14.x, Raspbian, Kali
Posts: 226

Rep: Reputation: 30
Starting Samba at boot time.

Hi all,

As a newbie windoze convert I am feeling please with myself for setting up Samba and actually getting it to work. (Linux just rocks!)

Could anyone tell me how and where I can add the /etc/init.d/smb start command to get samba to start by itself instead of my having to type it in a console.

Thanks, really appreciate the help.
Old 04-25-2003, 03:22 PM   #2
LQ Newbie
Registered: Dec 2002
Posts: 10

Rep: Reputation: 0


change ur directory to /etc/rc.d/rcx.d then do this

"ln -s /usr/sbin/smbd S12Samba"

this will create a symbolic link which will trigger smb daemon to start with startup.

also u would want it to die when shutting down so logically u woud do this in same directory as above with a slight change:

"ln -s /usr/sbin/smbd K12Samba"

U also need nmbd daemon to start with smbd, so u might also have a more complete solution of providing one name for both daemons to start:

"ln -s /usr/sbin/samba S12Samba"


"ln -s /usr/sbin/samba K12Samba"
Old 04-25-2003, 03:28 PM   #3
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
What distro are you using? There are usually easier ways to do it.

Usually something like:

chkconfig smb on

I think its smb but I'm not 100%. Haven't used samba in a while.

Last edited by Crashed_Again; 04-25-2003 at 03:32 PM.
Old 04-26-2003, 03:30 AM   #4
Registered: Jan 2003
Location: EU (UK)
Distribution: Ubuntu 14.x, Raspbian, Kali
Posts: 226

Original Poster
Rep: Reputation: 30
Thanks for the advice guys.

Both right, I'm using Redhat 8 and I have found


which does this all for me but I like to know how it's working.



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
Starting eth0 at boot time ? Antonius Linux - Newbie 1 01-19-2005 07:27 PM
Small thing: starting samba for the first time. ditch* Linux - Networking 5 12-07-2004 07:19 AM
Starting X automaticaly at boot time dublinclontarf Slackware 2 04-15-2004 10:00 AM
starting applications at boot time jogurt666 Debian 4 01-21-2004 03:39 AM
why smbfs not starting up at boot time? gkogut Linux - Networking 2 11-10-2003 05:47 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:44 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
Open Source Consulting | Domain Registration