I ran into the same problem today. Although I'm using Ubuntu 9.04, I think for smbclient the requirements are the same. My setup:
- Main OS: Ubuntu 9.04 (32-bit), Laptop
- 2nd OS: Windows 7 Ultimate (VMWare Workstation 6.5.2) (32-bit), same Laptop
When I have the vmware client running, I'm trying to connect to a share I made on the Windows 7 "box". Here's what I changed (to get it to work). This is by no means completely diagnostic, because when it worked I stopped looking for answers... (lol)
I had to first change the network settings for the current internet connection. They were on "Public", and I noticed that in changing the advanced sharing options (from Network and Sharing Center), that none of the sharing options were on for the Public scheme. So I changed the current network connection to Home. I did this in the Network & Sharing Center by clicking on the "Public" (or whatever yours is) security status beneath the icon of the network under "View your active networks".
Secondly (not sure if this step is necessary, but I did it anyway), I assigned a password to the default user account. I know that when a regular windows computer connects to another one with sharing and the sharing computer has no password, it won't let you do it until the proper security measures are set up.
Thirdly, since the user account name on my linux and windows comps are different, i needed to add the -U option to the smbclient line. If your username has spaces, then just enclose it in quotes:
Code:
smbclient -L WindowsComp -U "User Name"
Then it listed all the correct shares. I hope this helps.