NT client can't net view Linux Samba server

Stephen L Arnold arnold.steve at ensco.com
Thu Mar 11 19:42:31 GMT 1999


When the world was young, "Tom Roche" <tom_roche at ncsu.edu> carved 
some runes like this:  

> I'm trying to setup a RH5.2 Linux PC with samba-1.9.18p10. I want it
> to share its disk space with NT clients, ultimately using password
> encryption. I'm testing my setup with a NT4SP3 client.

I have a few more questions:

> The client has IP# 152.1.61.175, registered to kaon.csc.ncsu.edu; its
> TCPIP has DNS for Windows resolution enabled, and has no WINS servers. The
> server has IP# 152.1.61.159, which is registered to backpack.csc.ncsu.edu.

Are you saying the client is pointed to a DNS server but no WINS 
server?  WINS resolution should be disabled if there's no WINS 
server to point to.

> * I ran the diagnostics, logged in as root. I pass tests 1-7. Note
>   that I pass test 7: "smbclient '\\BACKPACK\TMP'" with no user set
>   (i.e. as current user == root), with -U guest, and -U tlroche. In
>   each case I get
> 
> > Added interface ip=152.1.61.159 bcast=152.1.255.255 nmask=255.255.0.0
> > startlmhosts: Can't open lmhosts file /etc/lmhosts. Error was No such
> file or directory

With no WINS server, you should have an /etc/lmhosts file on the 
samba box that looks something like this:

IP#  backpack
IP#  kaon
...

The client lmhosts should probably have the preload thing after the 
samba box:

IP#  backpack  #PRE
IP#  kaon
...

>   and am prompted for a password (except as guest).
> 
> * Test 8: On the PC type the command "net view \\BACKPACK". I get
> 
> > System error 5 has occurred.
> > Access is denied.

What about Net Use?  Even though Net View doesn't work, it doesn't 
mean mounting a share should necessarily fail.

> * I assume there's a problem with name resolution. As previously
>   mentioned, the client's TCPIP is configured with no WINS server, but
>   with DNS and LMHOSTS lookup enabled. I add the line
> 
> > 152.1.61.159  backpack
> 
>   to c:/WINNT/system32/drivers/etc/hosts, import LMHOSTS, and restart the
>   client. No change: I get the same system error 5. I also try 
> 
> > net view \\backpack
> > net view \\backpack.csc.ncsu.edu
> 
>   getting the same error.

Does the samba box show in the browse list when you just "net view" 
with no hostname?

> * I try using WINS. I change
> 
> > ;   wins support = yes
>   to
> >    wins support = yes
> 
>   I set the PC to use 152.1.61.159 (the IP# of the Samba server,
>   backpack) as its primary WINS server. I run
> 
> > killall -HUP inetd
> 
>   on the server, and restart the client. I repeat tests 1-7 for
>   sanity, and pass all. I fail test 8 identically.
> 
> * I copy the client's c:/WINNT/system32/drivers/etc/hosts, which has
> 
> > 127.0.0.1       localhost
> > 152.1.61.159	  backpack
> 
>   to /etc/lmhosts, adding the line
> 
> > 152.1.61.175	  kaon
> 
>   for completeness. I 
> 
> > killall -HUP inetd
> 
>   No change: I pass tests 1-7, and fail test 8.

I'm still not sure; did you put an lmhosts file on the samba box, 
or just on the client?  Also, you can change the lookup order on 
the samba side (name resolve order) and on the linux side (see 
/etc/nsswitch.conf).  Also, RedHat has a few issues with loopback 
vs. localhost in /etc/hosts, and I would put the hostname (kaon) 
first after the IP address, *then* the FQDN (see above for the 
lmhosts).

Finally, I can Net View all win95 boxes and the samba box by name 
from the NT box, but a can't Net View the NT box from either win95 
or smbclient (and I stil don't know why...).

Hope this helps, Steve


****************************************************************
Stephen L. Arnold                        Senior Systems Engineer
ENSCO Inc.                        email:  arnold.steve at ensco.com
P.O. Box 5488                         www:  http://www.ensco.com
Vandenberg AFB, CA  93437                    voice: 805.806.8838
                                               fax: 805.734.4779
#include <std_disclaimer.h>
****************************************************************


More information about the samba mailing list