Subject: Re: samba's smbd
To: None <oinkfreebiker@att.net>
From: Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
List: port-i386
Date: 07/20/2001 10:58:08
Hi.

What version of NetBSD you are running?

In message <20010719173959.YTAP5127.mtiwmhc25.worldnet.att.net@webmail.worldnet.att.net>
	on Thu, 19 Jul 2001 17:39:55 +0000,
	oinkfreebiker@att.net wrote:
> file /etc/inetd.conf has these lines added...
> 
> netbios-ssn stream tcp nowait root /usr/pkg/sbin/smbd smbd
> netbios-ns dgram udp wait root /usr/pkg/sbin/nmbd nmbd
This means 

1. If TCP connection request to netbios-ssn port come, then execute
   smbd for each request.

2. If UDP datagram to netbios-ns port come, then execute nmbd and wait
   for its termnation.

So,

> ...and get a listing for "nmbd" but not "smbd". I have 
> also done...
This is a logical result.

> kill -HUP 191
You could do it,

# kill `cat /var/run/inetd.pid`

Anyway, I suggest you that install samba with package system (if not),
and instead of executing from inetd, use startup scripts in it for
smbd and nmbd.

After install samba package,

1. Copy /usr/pkg/etc/rc.d/nmbd and  /usr/pkg/etc/rc.d/smbd into /etc/rc.d.
2. Add those lines in /etc/rc.conf.

nmbd=yes
smbd=yes

   Or, create /etc/rc.conf.d/nmbd and /etc/rc.conf.d/smbd, each
   containing "nmbd=yes" and "smbd=yes" in it.

--
Takahiro Kambe <taca@sky.yamashina.kyoto.jp>