Bug 6866 - smbtree and smbclient cannot list shares
Summary: smbtree and smbclient cannot list shares
Status: NEW
Alias: None
Product: Samba 3.4
Classification: Unclassified
Component: Client Tools (show other bugs)
Version: 3.4.0
Hardware: Other Linux
: P3 normal
Target Milestone: ---
Assignee: Volker Lendecke
QA Contact: Samba QA Contact
Depends on:
Reported: 2009-11-02 04:29 UTC by Nicolo' Chieffo
Modified: 2009-11-02 08:14 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Nicolo' Chieffo 2009-11-02 04:29:23 UTC
Hello, I'm running ubuntu 9.10 which has samba 3.4.0.
If I execute smbtree I get this output:
Enter yelo3's password: 
cli_start_connection: failed to connect to VBOX-CHIEVO<20> ( Error NT_STATUS_UNSUCCESSFUL
cli_start_connection: failed to connect to PORTATILE-HP-BA<20> ( Error NT_STATUS_UNSUCCESSFUL

Both shares are not password protected.

The same thing happens if I use smbclient //PORTATILE-HP-BA:Enter yelo3's password: 

But not if I directly type the IP address of the samba server:
Enter yelo3's password: 
Domain=[PORTATILE-HP-BA] OS=[Windows Vista (TM) Home Premium 6002 Service Pack 2] Server=[Windows Vista (TM) Home Premium 6.0]

	Sharename       Type      Comment
	---------       ----      -------
	ADMIN$          Disk      Amministrazione remota
	C$              Disk      Condivisione predefinita
	D$              Disk      Condivisione predefinita
	IPC$            IPC       IPC remoto
	Public          Disk      
session request to failed (Called name not present)
session request to 192 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
NetBIOS over TCP disabled -- no workgroup available

Can you help me?
Comment 1 Nicolo' Chieffo 2009-11-02 05:32:36 UTC
I manually compiled samba 3.4.3 and there is the same problem.
Comment 2 Nicolo' Chieffo 2009-11-02 05:34:09 UTC
nmblookup can find the IP address.

Lissting shares from other windows installations works fine. The problem is linux-only. Unfortunately I don't have other installed distributions to test
Comment 3 Nicolo' Chieffo 2009-11-02 08:14:14 UTC
I've found a way to workaround my problem:

in /etc/samba/smb.conf I have edit the line

name resolve order = lmhosts host wins bcast

putting host to the end of the list