The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
Author: Don Brearley 
Date:   17-01-01 03:45


I've been trying to get samba 2.0.7 to work properly under FreeBSD 4.2 for
quite some time.

Every time I run smbd -D and nmbd -D -- they execute (aparently) but no process's appear when doing a ps auwx.

Same thing happens when I run them from inetd.conf on boot, or if I run them
from a startup script.

I installed it from the ports w/ a simple "make install" no options.

testparms came back ok. No errors reported.

when i do a:

smbclient \\\\\\homes

it says:

adding interface (blah blah blah)
error connecting to (Connection refused)
Connection to failed

currently im running my firewalll in OPEN mode. (so 139 isnt being blocked)

can anyone point me to a fully functional smb.conf to look at?

thats pretty much all I can think of to explain the problem. I hope someone can help me out, ive been struggling with it for a day. (I even re-installed FreeBSD 4.2!)


- D

Reply To This Message
Author: Don Brearley 
Date:   17-01-01 06:40

Never mind.

I figured it out.

im an idiot.

Thanks anyways

- Don

Reply To This Message
Author: el_kab0ng 
Date:   17-01-01 08:46

heh... I've gone off half cocked on this list numerous times. Sometimes it just takes asking for the answers to be blatantly apparent. I know there are those out there that say using a web enabled interface is "lame" but you might consider using SWAT. It allows you to configure SAMBA with ease..then you can disable SWAT afterwards...

Reply To This Message
Author: Don Brearley 
Date:   17-01-01 15:51

SWAT eh.

I compiled with that. I have SWAT.

- Don

Reply To This Message
Author: el_kab0ng 
Date:   17-01-01 17:36

did it help?

Reply To This Message
Author: Dan Langille 
Date:   17-01-01 20:43

Don't be shy. What was wrong and how did you fix it?

Reply To This Message
Author: el_kab0ng 
Date:   17-01-01 23:22

I've noticed alot of folks trying to start nmbd and smbd via inetd.conf. I in fact, had it starting that way as well...until I realized there's a start-up script thats supposed to be used...but rarely gets talked about.

/usr/local/etc/rc.d/ which I believe needs to be renamed from .sh.default to just .sh. Upon reboot, this starts nmbd and smb without looping complications like I would get via inetd.conf.

Reply To This Message
Author: Daniel Schrock 
Date:   18-01-01 01:56

I had to create this file myself, but it is better than using inetd. My personal feeling is keep the inetd.conf to bare a minimum. Most of its contents are commented out on my system. the only things i currently have enabled are telnet, pop3, and swat (which is also restricted to my subnet) Everything else is running as a daemon.

Reply To This Message
Author: Dann Lampe 
Date:   18-01-01 06:36

In it's simplest form a configuration could look like this.....
Good for home use where security has no use. :-)

# Samba config file created using SWAT
# from (
# Date: 2001/01/16 23:49:29

# Global parameters
workgroup = BSD
netbios name = FILESERVER
netbios aliases = FILESERVER
server string = Samba Server
security = SHARE
encrypt passwords = Yes
log file = /var/log/log.%m
max log size = 50
load printers = No
dns proxy = No

comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

path = /DRIVE1
writeable = Yes
guest ok = Yes

path = /DRIVE2
writeable = Yes
guest ok = Yes

Reply To This Message
Author: Don Brearley 
Date:   19-01-01 05:35

Well the problem was that I had thought that you could name your share anything and point it to any dir.


path = /usr/misc

(im omitting the rest of the stuff )

anyways.. the problem was resolved when I matched the [ ] thing to the path.


path = /home

thats what did it for me.

- Don

Reply To This Message
Author: M Joyner 
Date:   20-01-01 07:48

If you install webmin
you can have swat run from within it ENCRYPTED

Reply To This Message
Author: el_kab0ng 
Date:   20-01-01 23:41

Unless thats a new version of Webmin I'm not aware of, SWAT runs it's own service...and instead of it being launched via webmin, it redirects you to the SWAT service... As for encrypted, thats new to me...unless you SSL, in which case it's ALL encrypted...

Reply To This Message
Author: NKritsky 
Date:   28-01-01 15:05

Maybe someone of you can help me?
After i upgraded my Samba 2.0.5a to 2.2.-alpha my nmbd started working very bad.

I have FreeBSD box (

bash#cat smb.conf

netbios name = WH
workgroup = DOMAIN

The new nmbd responses with address `' to any querys about name `WH', while it must answer `'
If you have already met with such problem - let me know about way to solve it

Reply To This Message
Author: meaculpa 
Date:   31-01-01 16:47

hi, did you turn the following option to YES:

wins support = YES

and who must get the answer is ""? other client or localhost of your FreeBSD?

Reply To This Message
Author: meaculpa 
Date:   31-01-01 16:49

hoho, pl's check your /etc/services and make sure the port number of netbios is turned on. i know they are 139 and 137.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum