Can't see samba server from Win98 machine - full data

Ioan NIKY Pricop pniky at yahoo.com
Thu Oct 11 23:48:04 GMT 2001


Dear sirs,

I have a problem with samba: 2 computers on the smalest
network and the Win98 can't browse the Linux-Samba shares.
I followed the 10 steps diagnosing procedure from John D.
Blair's book "Samba - Integrating UNIX and Windows":

1) testparm gave the following result [this may give an
overview about smb.conf settings]:

Load smb config files from /etc/samba/smb.conf
Processing section "[tmp]"
Processing section "[c]"
Processing section "[d]"
Processing section "[public]"
Loaded services file OK.
Press enter to see a dump of your service definitions
# Global parameters
[global]
	coding system = 
	client code page = 850
	workgroup = STANDALONE
	netbios name = 
	netbios aliases = 
	netbios scope = 
	server string = Samba Server
	interfaces = 
	bind interfaces only = No
	security = USER
	encrypt passwords = No
	update encrypted = No
	allow trusted domains = Yes
	hosts equiv = 
	min password length = 5
	map to guest = Never
	null passwords = No
	password server = 
	smb passwd file = /etc/samba/smbpasswd
	root directory = /
	passwd program = /bin/passwd
	passwd chat = *new*password* %n\n *new*password* %n\n
*changed*
	passwd chat debug = No
	username map = 
	password level = 0
	username level = 0
	unix password sync = No
	restrict anonymous = No
	use rhosts = No
	ssl = No
	ssl hosts = 
	ssl hosts resign = 
	ssl CA certDir = 
	ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
	ssl server cert = 
	ssl server key = 
	ssl client cert = 
	ssl client key = 
	ssl require clientcert = No
	ssl require servercert = No
	ssl ciphers = 
	ssl version = ssl2or3
	ssl compatibility = No
	debug level = 2
	syslog = 1
	syslog only = No
	log file = /var/log/samba/%m.log
	max log size = 0
	debug timestamp = Yes
	debug hires timestamp = No
	debug pid = No
	debug uid = No
	protocol = NT1
	read bmpx = No
	read raw = Yes
	write raw = Yes
	nt smb support = Yes
	nt pipe support = Yes
	nt acl support = Yes
	announce version = 4.2
	announce as = NT
	max mux = 50
	max xmit = 65535
	name resolve order = lmhosts host wins bcast
	max ttl = 259200
	max wins ttl = 518400
	min wins ttl = 21600
	time server = No
	change notify timeout = 60
	deadtime = 0
	getwd cache = Yes
	keepalive = 300
	lpq cache time = 10
	max disk size = 0
	max open files = 10000
	read prediction = No
	read size = 16384
	shared mem size = 1048576
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	stat cache size = 50
	load printers = Yes
	printcap name = /etc/printcap
	printer driver file = /etc/samba/printers.def
	strip dot = No
	character set = 
	mangled stack = 50
	stat cache = Yes
	domain groups = 
	domain admin group = 
	domain guest group = 
	domain admin users = 
	domain guest users = 
	machine password timeout = 604800
	add user script = 
	delete user script = 
	logon script = 
	logon path = \\%N\%U\profile
	logon drive = 
	logon home = \\%N\%U
	domain logons = No
	os level = 20
	lm announce = Auto
	lm interval = 60
	preferred master = No
	local master = Yes
	domain master = No
	browse list = Yes
	dns proxy = No
	wins proxy = No
	wins server = 
	wins support = No
	wins hook = 
	kernel oplocks = Yes
	ole locking compatibility = Yes
	oplock break wait time = 10
	smbrun = /usr/bin/smbrun
	config file = 
	auto services = 
	lock directory = /var/lock/samba
	default service = 
	message command = 
	dfree command = 
	valid chars = 
	remote announce = 
	remote browse sync = 
	socket address = 0.0.0.0
	homedir map = auto.home
	time offset = 0
	unix realname = No
	NIS homedir = No
	source environment = 
	panic action = 
	comment = 
	path = 
	revalidate = No
	username = 
	guest account = nobody
	invalid users = 
	valid users = 
	admin users = 
	read list = 
	write list = 
	force user = 
	force group = 
	writeable = No
	create mask = 0744
	force create mode = 00
	security mask = -1
	force security mode = -1
	directory mask = 0755
	force directory mode = 00
	directory security mask = -1
	force directory security mode = -1
	inherit permissions = No
	guest only = No
	guest ok = No
	only user = No
	hosts allow = 
	hosts deny = 
	status = Yes
	max connections = 0
	min print space = 0
	strict sync = No
	sync always = No
	write cache size = 0
	printable = No
	postscript = No
	printing = lprng
	print command = lpr -r -P%p %s
	lpq command = lpq -P%p
	lprm command = lprm -P%p %j
	lppause command = 
	lpresume command = 
	queuepause command = 
	queueresume command = 
	printer = 
	printer driver = NULL
	printer driver location = 
	default case = lower
	case sensitive = No
	preserve case = Yes
	short preserve case = Yes
	mangle case = No
	mangling char = ~
	hide dot files = Yes
	delete veto files = No
	veto files = 
	hide files = 
	veto oplock files = 
	map system = No
	map hidden = No
	map archive = Yes
	mangled names = Yes
	mangled map = 
	browseable = Yes
	blocking locks = Yes
	fake oplocks = No
	locking = Yes
	oplocks = Yes
	level2 oplocks = No
	oplock contention limit = 2
	strict locking = No
	share modes = Yes
	copy = 
	include = 
	preexec = 
	preexec close = No
	postexec = 
	root preexec = 
	root preexec close = No
	root postexec = 
	available = Yes
	volume = 
	fstype = NTFS
	set directory = No
	wide links = Yes
	follow symlinks = Yes
	dont descend = 
	magic script = 
	magic output = 
	delete readonly = No
	dos filetimes = No
	dos filetime resolution = No
	fake directory create times = No

[tmp]
	comment = Temporary file space
	path = /tmp
	guest ok = Yes

[c]
	path = /mnt/win95
	guest only = Yes
	guest ok = Yes

[d]
	path = /mnt/w95ext
	guest only = Yes
	guest ok = Yes

[public]
	path = /mnt/w95ext/public
	writeable = Yes
	guest only = Yes
	guest ok = Yes

2) Both computer can 'ping' the otherone either as IP
address or by host name [included in hosts].

3) smbclient -L NKHOME -U '' -N (smbd running and
accesible) gives:

added interface ip=10.0.0.1 bcast=10.255.255.255
nmask=255.0.0.0
Domain=[STANDALONE] OS=[Unix] Server=[Samba 2.0.7]

	Sharename      Type      Comment
	---------      ----      -------
	tmp            Disk      Temporary file space
	c              Disk      
	d              Disk      
	public         Disk      
	IPC$           IPC       IPC Service (Samba Server)

	Server               Comment
	---------            -------
	NKHOME               Samba Server

	Workgroup            Master
	---------            -------
	STANDALONE           NKHOME

Also the ps -aux | grep smbd shows the daemon running:

root       642  0.0  0.4  3892 1268 ?        S    19:43  
0:00 smbd -D
root      1285  0.0  0.2  1620  592 pts/1    R    20:04  
0:00 grep smbd

smbclient -L MELINTE -U '' -N (on the other host) correctly
shows the shares on the Win98.

4) nmblookup -B NKHOME __SAMBA__ [nmbd running] returns:

querying __SAMBA__ on 127.0.0.1
10.0.0.1 __SAMBA__<00>

Also ps -aux | grep nmbd shows the output:

root       647  0.0  0.5  3252 1380 ?        S    19:43  
0:00 nmbd -D
root      1289  0.0  0.2  1620  592 pts/1    R    20:04  
0:00 grep nmbd

5) The client's NetBIOS name can be resolved:

nmblookup -B MELINTE '*'
querying * on 10.0.0.2
10.0.0.2 *<00>

6) Broadcast address correctly determined:

nmblookup -d 2 '*'
added interface ip=10.0.0.1 bcast=10.255.255.255
nmask=255.0.0.0
querying * on 10.255.255.255
Got a positive name query response from 10.0.0.2 ( 10.0.0.2
)
10.0.0.2 *<00>

What looks odd here is that the linux [10.0.0.1] doesn't
seem to respond (none of the commands issued).

7) User authentication seems to work:

smbclient '\\nkhome\tmp'

added interface ip=10.0.0.1 bcast=10.255.255.255
nmask=255.0.0.0
Password:
.Anonymous login successful
Domain=[STANDALONE] OS=[Unix] Server=[Samba 2.0.7]
smb: \>dir
   .                                  D        0  Thu Oct
11 20:18:48 2001
  ..                                  D        0  Thu Oct
11 19:43:02 2001
  .font-unix                         DH        0  Thu Oct
11 19:43:29 2001
  .X0-lock                           HR       11  Thu Oct
11 19:43:34 2001
  .X11-unix                          DH        0  Thu Oct
11 19:43:34 2001
  kde-root                            D        0  Thu Oct
11 19:44:02 2001
  ksocket-root                        D        0  Thu Oct
11 19:44:10 2001
  .ICE-unix                          DH        0  Thu Oct
11 19:44:06 2001
  mcop-root                           D        0  Thu Oct
11 19:44:05 2001

		64731 blocks of size 65536. 39303 blocks available
smb: \>exit

Also it works on the Win98:

smbclient '\\melinte\d'

added interface ip=10.0.0.1 bcast=10.255.255.255
nmask=255.0.0.0
Password:
smb: \>dir
   .                                  D        0  Mon Jun
26 21:00:10 2000
  ..                                  D        0  Mon Jun
26 21:00:10 2000
  PROGRAMS                            D        0  Mon Jun
26 21:00:10 2000
  Pentru NIKY                         D        0  Sun Sep
10 12:00:54 2000
  Pentru CIPRIAN                      D        0  Mon Jun
26 21:00:10 2000

		65511 blocks of size 65536. 15998 blocks available
smb: \>exit 

And I also can smbmount the Win98 shares without problems.

8) nmbd does not respond to the PC:

net view \\nkhome [on Win98] ends in:

Error 59: An unexpected network error has occurred. Quit
all running 
programs, restart your computer, and then try again. If the
problem persists, 
contact your network administrator.

meanwhile, tcpdump on the Linux shows:

19:43:30.204148 eth0 B melinte.netbios-dgm >
10.255.255.255.netbios-dgm: NBT UDP (138)
19:44:30.184148 eth0 B melinte.netbios-dgm >
10.255.255.255.netbios-dgm: NBT UDP (138)
19:45:30.174148 eth0 B melinte.netbios-dgm >
10.255.255.255.netbios-dgm: NBT UDP (138)
19:45:49.924148 eth0 B melinte.netbios-ns >
10.255.255.255.netbios-ns:NBT UDP PACKET(137): QUERY;
REQUEST; BROADCAST
19:45:50.674148 eth0 B melinte.netbios-ns >
10.255.255.255.netbios-ns:NBT UDP PACKET(137): QUERY;
REQUEST; BROADCAST
19:45:51.424148 eth0 B melinte.netbios-ns >
10.255.255.255.netbios-ns:NBT UDP PACKET(137): QUERY;
REQUEST; BROADCAST
19:45:52.174148 eth0 B arp who-has nkhome tell melinte
19:45:52.174148 eth0 > arp reply nkhome (0:70:ca:11:1f:3)
is-at 0:70:ca:11:1f:3 (0:40:f6:20:58:d6)
19:45:52.174148 eth0 < melinte.1523 > nkhome.netbios-ssn: S
7878078:7878078(0) win 8192 <mss 1460,nop,nop,sackOK> (DF)
19:45:52.174148 eth0 > nkhome > melinte: icmp: nkhome tcp
port netbios-ssn unreachable (DF) [tos 0xc0]
19:45:55.094148 eth0 < melinte.1523 > nkhome.netbios-ssn: S
7878078:7878078(0) win 8192 <mss 1460,nop,nop,sackOK> (DF)
19:45:55.094148 eth0 > nkhome > melinte: icmp: nkhome tcp
port netbios-ssn unreachable (DF) [tos 0xc0]
19:45:57.174148 eth0 > arp who-has melinte tell nkhome
(0:70:ca:11:1f:3)
19:45:57.174148 eth0 < arp reply melinte is-at
0:40:f6:20:58:d6 (0:70:ca:11:1f:3)
19:46:01.094148 eth0 < melinte.1523 > nkhome.netbios-ssn: S
7878078:7878078(0) win 8192 <mss 1460,nop,nop,sackOK> (DF)
19:46:01.094148 eth0 > nkhome > melinte: icmp: nkhome tcp
port netbios-ssn unreachable (DF) [tos 0xc0]
19:46:13.094148 eth0 < melinte.1523 > nkhome.netbios-ssn: S
7878078:7878078(0) win 8192 <mss 1460,nop,nop,sackOK> (DF)
19:46:13.094148 eth0 > nkhome > melinte: icmp: nkhome tcp
port netbios-ssn unreachable (DF) [tos 0xc0]
19:46:58.974148 eth0 B melinte.netbios-dgm >
10.255.255.255.netbios-dgm: NBT UDP (138)

It seems that netbios-ssn does not respond, but:

netstat -a | grep netbios
tcp        0      0 *:netbios-ssn           *:*            
        LISTEN      
udp        0      0 nkhome:netbios-ns       *:*            
                    
udp        0      0 *:netbios-ns            *:*            
                    
udp        0      0 nkhome:netbios-dgm      *:*            
                    
udp        0      0 *:netbios-dgm           *:*            
                    

shows the service as listening...

Can anyone help me with all this mess?!?

Thanx,

=====
Ioan (John) NIKY Pricop
Bucharest - ROMANIA
pniky at yahoo.com

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com




More information about the samba mailing list