LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...

Notices

Reply
 
Search this Thread
Old 04-14-2004, 02:47 PM   #1
DaFrEQ
Member
 
Registered: Mar 2002
Location: Earth... for now
Distribution: SuSE9.2 AMD64; LFS; GentooAMD64; Ubuntu10.04; RHEL 5.5; Solaris10(SPARC)
Posts: 418

Rep: Reputation: 30
SuSE 9.0 smbd -D && nmbd -D autostart


Hey all.

I'm having troubles getting the smbd -d and nmbd -d to start during bootup.

I tried using YaST2 Runlevel Editor, but there isn't anything located in the /etc/init.d dir partaining to the smbd or nmbd.

I also wrote a simple script and put it in the init.d dir and the runlevel editor saw it. I set it up to load automatically under inits 2, 3, & 4.
It loads the smbd -D but not the nmbd -D.
Then I have to manually execute: #nmbd -D
But then the printer isn't accesible to other machines.

When I removed the nmbd -D script from auto loading, it still failed to leave access to the printer to other machines.
I had to remove the smbd -D and nmbd -D scripts from autoloading and reverted back to manual execution of the two commands.
It works fine when I execute it manually, but I need it to load automatically.

Any ideas?

Tnx.
L8rz
 
Old 04-17-2004, 01:08 PM   #2
beyond_2000
Member
 
Registered: Oct 2002
Location: Guangdong,Chinese
Distribution: Redhat AS 3.0 + FC1
Posts: 72

Rep: Reputation: 15
why not try this command: chkconfig
because i had uninstalled my suse9, you can use
chkconfig --list smbd to find it out, if you got it, just type chkconfig --add smbd
then it will start at run level 3,5.
good luck.
 
Old 04-19-2004, 12:26 PM   #3
DaFrEQ
Member
 
Registered: Mar 2002
Location: Earth... for now
Distribution: SuSE9.2 AMD64; LFS; GentooAMD64; Ubuntu10.04; RHEL 5.5; Solaris10(SPARC)
Posts: 418

Original Poster
Rep: Reputation: 30
Thing is,

smbd and nmbd are not current services. I'm not using the built in Samba server in SuSE.
I installed the latest from source because SuSE's version was causing problems with my printer.

So, again, I need a way to start these two services automatically that will eliminate the errors of before.

As the previous thread stated:
Every time I setup the smbd -D & nmbd -D to start automatically, it doesn't work properly. Only when I run the commands manually does the samba server work properly.
 
Old 04-20-2004, 05:16 PM   #4
DaFrEQ
Member
 
Registered: Mar 2002
Location: Earth... for now
Distribution: SuSE9.2 AMD64; LFS; GentooAMD64; Ubuntu10.04; RHEL 5.5; Solaris10(SPARC)
Posts: 418

Original Poster
Rep: Reputation: 30
bump
 
Old 04-23-2004, 06:28 PM   #5
objorkum
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 10.0
Posts: 231

Rep: Reputation: 30
If Samba is installed trough YaST it's very easy:

Code:
cd /etc/init.d
insserv smb
insserv nmb
You have now activated the SMB and the NMB daemon during startup. You can also take a look at those scripts, but they are fine. insserv is the same as runlevel editor. insserv -r <script> removes a script from the runlevels (rcX.d)

A reason why your script didn't work, might be that you didn't requite $network and $named. Runlevel 3 and 5 is enough when making own scripts usually.
 
Old 04-24-2004, 04:10 AM   #6
beyond_2000
Member
 
Registered: Oct 2002
Location: Guangdong,Chinese
Distribution: Redhat AS 3.0 + FC1
Posts: 72

Rep: Reputation: 15
Come on , objorkum ,i never got this command.
does it really works ?
 
  


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
Ph&#7909;c h&#7891;i d&#7919; li&#7879;u b&#7883; m&#7845;t???, c&#7913; pollsite General 1 06-27-2005 12:39 PM
smbd and nmbd aproan Linux - Networking 1 02-05-2005 07:19 PM
smbd and nmbd missing PhilHalf Linux - General 1 01-28-2003 07:55 AM
smbd and nmbd artman62 Linux - Networking 3 06-27-2002 06:14 PM
smbd and nmbd iquadri1 Linux - Networking 0 09-29-2001 01:41 PM


All times are GMT -5. The time now is 12:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration