LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   nmbd deamon (https://www.linuxquestions.org/questions/linux-newbie-8/nmbd-deamon-61107/)

jmono 05-21-2003 11:56 PM

nmbd deamon
 
i just reinstall my linux Mandrake 8.2 (3 disc), but the nmbd deamon is not there
why???

lostboy 05-22-2003 12:29 AM

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

jmono 05-22-2003 07:08 AM

thanks
nmbd is running now!!

but how can i set up that this deamon will enable always

lostboy 05-22-2003 12:52 PM

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

stinman 12-19-2003 01:02 AM

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

lostboy 12-23-2003 11:48 AM

Your welcome. I'm glad this post was useful.

Wikkus 01-04-2004 10:10 AM

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.
:D

HTH.


All times are GMT -5. The time now is 05:26 PM.