LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 09-23-2004, 04:53 AM   #1
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Rep: Reputation: 34
Where is smbd?


I just added samba package and I can't locate smbd. In Linux it is usually at /usr/sbin/.

One more thing, if I'm going to recompile a new samba package (3.0.x), will it be the same with Linux = ./configure; make; make install;?

Thanks again for any help!
 
Old 09-23-2004, 06:26 AM   #2
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
whereis smbd.
Check /usr/local/bin
Non-FreeBSD system stuff is in /usr/local

Nooooooooooooooooo, you do not ./configure, you use the ports system so you can use the ports upgrade process.
cd to the samba folder you want to install.
# make
You will be presented with a menu selection. Be sure to uncheck LDAP unless you are using it on your system.
# make install clean
Samba 3.0.6 has a different password method and you will have trouble with the older smbpasswd.

Note: You should really read the Handbook before you screw up the ports system by adding apps outside the ports that cannot be upgraded easily.
 
Old 09-23-2004, 11:25 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 75
There's already a port of Samba, like -X- said. The whole point of the BSDs with the ports system is that you should almost never need to download source and go through to compilation steps.

$ man ports

That being said, if you install from ports it should be in /usr/libexec (it's *libexec* something) in OpenBSD.
 
Old 09-23-2004, 03:07 PM   #4
Marble
Member
 
Registered: Feb 2003
Distribution: FreeBSD 5.2
Posts: 113

Rep: Reputation: 15
and remember to review some previous threads about updating your ports tree. Once you get the hang of updating the ports tree and using it properly, you will see how easy and efficient it is.
 
Old 09-23-2004, 11:14 PM   #5
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Original Poster
Rep: Reputation: 34
So I need first to study this section - ports.

I need 3.0.x coz I need NT Domain server. I was frustrated trying this 2.2.7a with RH9, it can't add my XP hosts to the passwd on the fly and can't even make NT Domain works, only good for file sharing.

When I tried Slackware 10 with 3.0.4 of Samba, the same procedure I made with RH9 and Samba 2.2.7, it worked flawlessly, without too much effort.

I switch to 3.0.x coz the Samba 2.2.x README regarding its direction, version 3 will have the full support for NT Domain.

I have done whereis actually before posting this, it can't find smbd. Either in /usr/local/sbin, which also a possible location, smbd is missing. But smb.conf is present in /etc/samba/.
 
Old 09-24-2004, 06:48 AM   #6
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Samba 3.0.6 is ok, it just uses a different password database. I'm not at my FreeBSD box now, so I'm unable to give any more info. If you have problems, just google it, or read the change log.

You shouldn't need to know where smbd is, just start samba in /usr/local/etc/rc.d/ and the script will do all the work for you.
 
Old 09-24-2004, 07:09 AM   #7
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Original Poster
Rep: Reputation: 34
Is it the same in Linux - /usr/local/etc/rc.d/smbd -D to run it as daemon?

If I want it started during boot up, will I put this line in /etc/rc.conf.local?

I'm already ok with tdbsam backend, I already made it worked in Slackware. I really just want to make use of 3.0.x and not 2.2.x.
 
Old 09-24-2004, 09:43 AM   #8
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
None of my Linux and Slackware was that way. There is a Slackware / rc.samba script that starts smbd and nmbd. The smbd is in /usr/bin not .../rc.d. I don't think any Linux distro put smbd in .../rc.d. .../rc.d just has scripts.

For FreeBSD, put this in /etc/rc.config.
samba_enable="YES"
That will start samba on boot.

I'm not at my FreeBSD box, going by memory....
To start samba w/o rebooting;
/usr/local/etc/rc.d/samba.sh start
or something like that. If you make changes to smb.conf, you will need to restart the samba.sh script.

That will start the smbd and nmbd deamon. Find the script and read it. Its all setup for you.

edit;
Slackware uses /etc/rc.d/rc.samba
FreeBSD uses /usr/local/etc/rc.d/samba.sh

Last edited by -X-; 09-24-2004 at 09:50 AM.
 
Old 09-24-2004, 10:57 PM   #9
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Original Poster
Rep: Reputation: 34
I found it thru find utility. It's in /usr/local/libexec, both the smbd and nmbd daemons. I just created a symlink within /usr/sbin for both and it's now working.

How can I mount remote smb shares, it seems that smbmount is not applicable on BSD.
 
Old 09-25-2004, 01:58 AM   #10
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 75
$ man mount

You can start it automatically by editing /etc/rc.conf.local

Last edited by chort; 09-25-2004 at 01:59 AM.
 
Old 09-25-2004, 02:04 AM   #11
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Original Poster
Rep: Reputation: 34
That's what will I read after ports.

At the moment, I'm doing it the other way, on my XP machines' My Network Places.
 
Old 09-25-2004, 04:13 AM   #12
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Original Poster
Rep: Reputation: 34
I saw an rc.local in /etc so I added these lines after the last entry:

# Samba startup
if [ -x /usr/sbin/smbd -a /usr/sbin/nmbd -a -s /etc/samba/smb.conf ]; then
echo "Running Samba..."; /usr/sbin/smbd -D; /usr/sbin/nmbd -D
if [ `cat /var/run/smbd.pid` != 0 ]; then
echo "Samba is running..."
fi
fi

I created symbolic links for smbd and nmbd:

# ln -s /usr/local/libexec/smbd /usr/sbin/smbd
# ln -s /usr/local/libexec/nmbd /usr/sbin/nmbd

By default, when samba package is added, the system put the daemons in /usr/local/libexec.
 
Old 09-25-2004, 07:37 AM   #13
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Not sure why you created all that in /etc/rc.local since the samba port sets it up for you. If you installed the samba port correctly, you just needed to do as I said. If you did not install from ports, you may have problems later when you do a portupgrade. But, hey, if you're happy, that's what matters.

Check out my latest project.

Last edited by -X-; 09-25-2004 at 08:27 AM.
 
Old 09-25-2004, 09:59 PM   #14
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 75
-X-, I think he's talking about OpenBSD, in which case it's not the same as FreeBSD.
 
Old 09-26-2004, 05:38 AM   #15
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
ok..., missed that.
Always wanted to look into OpenBSD.
Thanks.
 
  


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
smbd jakublgz Linux - Networking 8 01-03-2011 01:52 AM
SMBD not running? alirezan1 Linux - Networking 0 12-21-2004 05:05 AM
smbd won't run iamcgn Slackware 13 12-16-2004 08:18 AM
smbd and nmbd artman62 Linux - Networking 3 06-27-2002 06:14 PM
many daemons smbd Corinne Linux - Networking 1 03-04-2002 07:46 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 04:20 AM.

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
Open Source Consulting | Domain Registration