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 05-22-2003, 12:56 AM   #1
jmono
Member
 
Registered: Feb 2003
Location: Colombia
Distribution: Mandrake
Posts: 52

Rep: Reputation: 15
nmbd deamon


i just reinstall my linux Mandrake 8.2 (3 disc), but the nmbd deamon is not there
why???
 
Old 05-22-2003, 01:29 AM   #2
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Rep: Reputation: 30
In a console type 'locate nmbd'.
If you find that this file is there, what happens if you type 'nmbd start' ?

If you get an error and can't trace it, post the error.

JC
 
Old 05-22-2003, 08:08 AM   #3
jmono
Member
 
Registered: Feb 2003
Location: Colombia
Distribution: Mandrake
Posts: 52

Original Poster
Rep: Reputation: 15
thanks
nmbd is running now!!

but how can i set up that this deamon will enable always
 
Old 05-22-2003, 01:52 PM   #4
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Rep: Reputation: 30
Here is the easy way :

I'm running Slackware, so I'm not sure about how the directories are set up in Mandrake. But this is how I would do it in Slack.

In ' /etc/rc.d/ ' there should be a file called ' rc.samba ' .
This is a shell script. If it is not there, you can make one.
You will probably have to alter the script if it is there. Just make it look like the example below.

If you need to make one,open Kwrite (or any other editor) and create a file that looks like
this :
---------------------------------------------------------------------------------------------
#!/bin/sh
#
# /etc/rc.d/rc.samba
#
# Start/stop/restart the Samba SMB file/print server.
#
# To make Samba start automatically at boot, make this
# file executable: chmod 755 /etc/rc.d/rc.samba
#
/usr/sbin/smbd -D
/usr/sbin/nmbd -D
--------------------------------------------------------------------------------------------
Now keep in mind that in my case, the smbd and nmbd files are located in ' /usr/sbin '. You need to modify your script (if necessary) to point to the location of your smbd and nmbd files.

Save the file.

After you have made this script, do this :

While in the directory of your shell script, type :

chmod +x rc.samba

This creates an executable shell script.
Then do this :

chmod 755 rc.samba

This makes the script executable upon boot up.
Restart your machine.

Upon next boot, you should automatically have the smbd and nmbd servers running.

JC
 
Old 12-19-2003, 02:02 AM   #5
stinman
LQ Newbie
 
Registered: Oct 2002
Location: Florida
Distribution: Suse 9.0
Posts: 1

Rep: Reputation: 0
Talking

LostBoy,

Thank you for this information. I have been looking for this answer for a couple days (actual weeks). I am runnig Suse 9.0 with Samba 2.2.8 included with the distro. I am running an old Pentuim-MMX 233 with an assortment of hardware.

I have had smbd and nmbd start at boot with a previous install, Suse 8.0. However, that was on an old computer show swap meet hard drive (you know 3 drives for $5) and it failed horrifically. So now I got a somewhat less used 8 gig HD and have reinstalled a dual boot Windows NT4 and Suse 9.0. I could not remeber how I got smbd and nmbd to run at boot from the previous install, so the trek for knowledge began again.

I have tried (and failed) many other ways to start these services at boot, but this post was the one that worked, so I thought I should post that this really does work!!!!

Thank you,
Stinman
 
Old 12-23-2003, 12:48 PM   #6
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Rep: Reputation: 30
Smile

Your welcome. I'm glad this post was useful.
 
Old 01-04-2004, 11:10 AM   #7
Wikkus
LQ Newbie
 
Registered: Aug 2003
Location: Leafy Hertfordshire, UK
Distribution: SuSE 7.1 Pro, 9.0 Pro, 9.2 Pro, SLED 10
Posts: 28

Rep: Reputation: 15
SuSE 8.2 specifics

Quote:
Originally posted by stinman
LostBoy,

Thank you for this information. I have been looking for this answer for a couple days (actual weeks). I am runnig Suse 9.0 with Samba 2.2.8 included with the distro. I am running an old Pentuim-MMX 233 with an assortment of hardware.

I have had smbd and nmbd start at boot with a previous install, Suse 8.0. However, that was on an old computer show swap meet hard drive (you know 3 drives for $5) and it failed horrifically. So now I got a somewhat less used 8 gig HD and have reinstalled a dual boot Windows NT4 and Suse 9.0. I could not remeber how I got smbd and nmbd to run at boot from the previous install, so the trek for knowledge began again.

I have tried (and failed) many other ways to start these services at boot, but this post was the one that worked, so I thought I should post that this really does work!!!!

Thank you,
Stinman
FWIW, whilst lostboy's solution does indeed work, there should be no need to create a script from scratch; SuSE 8.2 (and presumably, therefore, 9.0 also) has scripts to begin these services in /etc/init.d although they're not necessarily immediately obvious nor are they invoked by default (as you now know).

The nmdb script is called simply nmb and the smbd one (unsurprisingly) smb.

SuSE can be made to incorporate both these into the startup process by invoking:

poochzilla:/etc/init.d # insserv nmb
poochzilla:/etc/init.d # insserv smb

Reboot and Robert's your mother's brother.


HTH.
 
  


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
vsftpd deamon MMMarc Linux - Newbie 2 02-06-2005 10:19 AM
Cron deamon? eXor Slackware 4 07-02-2003 12:55 PM
the acme deamon saturn_vk Linux - Software 0 03-25-2003 03:55 PM
cron Deamon DJFauß Linux - General 2 01-22-2002 04:32 AM
deamon dies rmr2001 Linux - Newbie 0 01-09-2002 08:38 PM


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