[Tfug] Newbie: Samba & Win2000

Angus Scott-Fleming tfug@tfug.org
Wed Jul 10 13:13:01 2002


Followup to the earlier thread which started thusly:

> On Wed, 19 Jun 2002, Angus Scott-Fleming wrote:
> 
> > Just set up a Debian box using what I thought was the latest version,
> > download from debian.org, but it installed Samba 2.0.8.  I see from the
> > Samba.org site that Samba 2.2.1 is required for Win2000 support, which I
> > need.  Also, the samba site says 2.2.5, released 19 June 2002, as the
> > latest-and-greatest.  Debian's dselect shows 2.0.7-5 as the available
> > version.
> >
> > How do I get this samba box to work with Win2000?

The box is now running Woody, with samba 2.2.3a-6 for Debian, but I still 
can't connect to it from my Win2k/SP2 box -- I'm getting "host not found" 
messages when I try to NET USE a share the Linux box from the Win2k box; 
the share works fine from a Win98SE box so AFAICT smbd and nmbd are set up 
and running.  

I can ping the box from the Win2k box just fine.  I've created an LMHOSTS 
file on the Win2k box and told it to use it in the advanced TCP/IP config, 
and I've enabled NetBIOS over TCP/IP.  The LMHOSTS file reads:

  192.168.0.208 sambox #PRE 

Here's the smb.conf file from the Samba box (minor word-wrapping may occur 
on the longest lines):

------- Included Stuff Follows -------
;
; /etc/smb.conf

[global]
   printing = bsd
   printcap name = /etc/printcap
   load printers = yes
   guest account = nobody
   invalid users = root
   security = user
   workgroup = fleming
   server string = %h Sambox (Samba %v)
   syslog only = no
   syslog = 0;
   socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 
SO_RCVBUF=4096
   encrypt passwords = yes 
   wins support = yes 
   os level = 65
   domain master = yes
   local master = yes
   preferred master =yes 
   name resolve order = lmhosts host wins bcast
   dns proxy = no
   preserve case = yes
   short preserve case = yes
   unix password sync = true
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n 
*Retype\snew\sUNIX\spassword:* %n\n .
   max log size = 1000


[homes]
   comment = Home Directories
   browseable = no
   read only = no
   create mask = 0700
   directory mask = 0700

[printers]
   comment = All Printers
   browseable = no
   path = /tmp
   printable = yes
   public = no
   writable = no
   create mode = 0700

[home]
   comment = Home directories
   writable = yes
   locking = no
   path = /home/%u
   public = no

[pmail]
   comment = Pegasus Mail 
   writable = yes
   locking = no
   path = /pub/P
   public = yes

[pub]
   comment = Shared directories
   writable = yes
   locking = no
   path = /pub
   public = yes

[cdrom]
   comment = Samba server's CD-ROM
   writable = no
   locking = no
   path = /cdrom
   public = yes

   preexec = /bin/mount /cdrom
   postexec = /bin/umount /cdrom

--------- Included Stuff Ends ---------

On the Win98 box NET VIEW produces the following:

------- Included Stuff Follows -------
C:\>net view
Servers available in workgroup FLEMING.
Server name            Remark
------------------------------------------------------------------
\\SAMBOX               sambox Sambox (Samba 2.2.3a-6 for Debian)
\\HOME98               IBM PC3000GL PII/256mb/3.2gb Win98SE
\\TPAD                 Win2k SP2
--------- Included Stuff Ends ---------

On the TPAD, NET VIEW just shows the last two lines.

Where do I go from here?

TIA ...

AngusSF

----
Angus Scott-Fleming
GeoApps, Tucson, Arizona
http://www.geoapps.com/   
1-520-290-5038 / fax 1-208-248-3124
+----------------------------------------------
----------+