Subject: RE: samba's smbd again
To: None <port-i386@netbsd.org>
From: None <oinkfreebiker@att.net>
List: port-i386
Date: 07/21/2001 02:01:58
Okay, my prior efforts with Samba 
were on a Compaq Deskpro 4000 at work.
So I decided to start all over on my
ThinkPad 380Z at home. The ThinkPad
has never had Samba on it yet. So I...

# pkg_add samba

...and samba installs, creating a 
directory or two. I see that this is
Samba 2.0.7-ja-1.3. Then I do...

# mkdir /etc/samba
# vi /etc/samba/smb.conf

...and put in this...

[global]
  workgroup = STURNO
[home]
  guest okay = no
  read only = no
  
...the simplest possible, yes?
Then I do...

# /usr/pkg/bin/testparm

...and get an error that lock
lock directory /var/run/samba
does not exist. So I...

# mkdir /var/run/samba

...and try again...

# testparm | more
Load smb config files from /etc/samba/smb.conf
Processing section "[home]"
No path in service home - using /tmp
Loaded services file OK.
Press enter to see a dump of your service definitions

...and look at what rools up the screen.
It seems okay and all. So I go for it...

# /usr/pkg/sbin/nmbd -D
# /usr/pkg/sbin/smbd -D

...and then I do...

# ps -x | grep mbd
#

...and nothing. So I check...

# ls /var/run/samba
nmbd.pid smbd/pid
#

...and I also do...

# ls /var/log | grep mb
log.nmb
log.smb
#

...and I then...

# more /var/log/log.nmb
[2001/06/20 20:32:43, 1] nmbd/nmbd.c:main(757)
  Netbios nameserver version 2.0.7-ja-1.3 started.
  Copyright Andrew Tridgell 1994-1998
[2001/06/20 20:32:43, 0] 
lib/util_sock.c:open_socket_in(824)
  Get_Hostbyname: Unknown host
[2001/06/20 20:32:43, 0] 
lib/util_sock.c:open_socket_in(824)
  Get_Hostbyname: Unknown host
  
...and I then...

# more /var/log/log.smb

[2001/06/20 20:32:50, 1] smbd/server.c:main(641)
  smbd version 2.0.7-ja-1.3 started.
  Copyright Andrew Tridgell 1992-1998
[2001/06/20 20:32:50, 0] 
param/loadparam.c:service_ok(1825)
  No path in service home - using /tmp
[2001/06/20 20:32:50, 1] 
lib/util_sock.c:open_socket_in(216)
  file_init: Information only: requested 10000 open 
files, 1762 are available.
[2001/06/20 20:32:50, 1] 
lib/util_sock.c:open_socket_in(824)
  Get_Hostbyname: Unknown host
#

...and then I do...

# smbstatus
No path in service home - using /tmp
Couldn't open status file /var/run/samba/STATUS..LCK

...so I do...

# touch /var/run/samba/STATUS..LCK
# smbstatus
No path in service home - using /tmp

Samba version 2.0.7-ja-1.3
Service     uid     gid     pid     machine
-------------------------------------------

No locked files

Share mode memory usage (bytes):
   1048464(99%) free + 56(0%) used + 56(0%) overhead = 
1048576(100%) total
#


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

...then after reading mail from Todd Vierling
I do this...

# mv /etc/samba/smb.conf /etc/samba/smb.conf.my
# cd /usr/pkg/share/examples/samba
# cp smb.conf.default /etc/samba/smb.conf

...and I try again...

# /usr/pkg/sbin/nmbd -D
# /usr/pkg/sbin/smbd -D
# ps -x | grep bd
#

...and again nothing.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


So my question is... "Is this okay? Is anything
wrong? And if so what?" It is NOT like the books
'Samba for Dummies' or 'Using Samba' or any like
examples from stray Linux books which I have.

Is it a NetBSD-ish "vive la differance!" thing,
or have I screwed it up somehow. I am running
NetBSD 1.5 from the Wasabi 4-CD set, and my pkg
of Samba is from that set.

I have spent two days playing with this and I
still don't know if it is working...or what next
I should do.

Gan Starling
Kalamazoo MI USA

---

To paraphrase Hitler... 
"Who remembers the Amalekites?"