LinuxQuestions.org
Register a domain and help support LQ
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 11-21-2002, 04:15 PM   #1
bkeating
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Open/FreeBSD, Gentoo, SuSE
Posts: 511

Rep: Reputation: 38
RH8 as "Server" wheres the samba binary? :(


Im use to;

# sa

*tab*

I use bash... but samba doesn't show up.. where is the samba binary? I checked the normal bin directories.. nothing.. i have teh samba.conf and manual and everything.. just can't find the freakin binary... doing a;

# locate samba

scrolls most of it's results and leaves me with var and usr/local/man listings n such...

please help! Im like.. not supose to be a newbie anymore this is getting bad
 
Old 11-21-2002, 04:40 PM   #2
bkeating
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Open/FreeBSD, Gentoo, SuSE
Posts: 511

Original Poster
Rep: Reputation: 38
K, I managed to start samba through

# /etc/rc.d/init.d/smb start

but whats the contents of init.d supose to be? i know thats not the samba binary.. is it? it init.d just the direct that keeps links to service-based apps? i confuse.
 
Old 11-21-2002, 04:54 PM   #3
Nothsa
LQ Newbie
 
Registered: Nov 2002
Posts: 22

Rep: Reputation: 15
init.d is used to store program initiation files (so that when you type "samba start" or "samba stop", it knows what to do). Just below the directory init.d (in rc.d) should be a few more directories, rc0.d, rc1.d, rc2.d, etc. These directories represent the different run levels (ie. rc3.d initiates when you switch to run level 3) and contain symbolic links to the files in init.d.

If you look inside the run level directories you'll see links in the format:

K11service

and

S11service

These links tell linux to either kill (K) or start (S) a service. The 2-digit number tells it in what order to execute each command (ie. K24 will be executed before K36 or S57). So, if you want samba to run when linux starts, you'll need to put a symbolic link to it in run level 3:

ln -sf /etc/rc.d/init.d/samba /etc/rc.d/rc3.d/S99smb

and to stop it when linux shuts down, put a link in run level 0:

ln -sf /etc/rc.d/init.d/samba /etc/rc.d/rc0.d/K00smb
 
Old 08-03-2003, 11:43 PM   #4
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
I have been starting Samba by using rc.local. To my understanding this is pretty much like running shell commands after all other processes have been started on bootup. So I edited my rc.local file (located under /etc/rc.d/) and added the line: service smb start.

Here's my question: Would it be better to use the methods you described or is what I'm doing OK? The only disadvantage I can see is that the process isn't being killed, since we never sent a kill signal to that process when the machine shuts down. Would that be a problem?

Maybe I'm just being too much of a perfectionist.

Last edited by Donboy; 08-03-2003 at 11:45 PM.
 
Old 08-04-2003, 01:04 AM   #5
lappen
Member
 
Registered: Aug 2003
Location: Sweden
Posts: 83

Rep: Reputation: 15
Don't think so, it's exactly as you said... rc.local is loaded after everything else,
If it had been a firewall script or something security related I would have used the other option though
 
  


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
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 02:30 PM
Authenticating to Samba share using "Active Directory Server" hlslaughter Linux - Software 36 07-23-2004 11:59 AM
XP not validating an "NT 4" Samba server Odd_Bloke Linux - Networking 0 03-04-2004 07:39 PM
Does "ac97 & RH8" imply "buy a Sound Blaster Live"? nicktoop Linux - Hardware 3 02-13-2004 09:53 AM
Samba "gateway" server? Infamous Tim Linux - General 1 09-16-2001 04:01 AM


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