Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried to share the directory /home/me/music with Samba. The output of testparm on my server is as follows (I think this is Ubuntu's default configuration, except for the [share] section):

server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d

comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No

comment = Printer Drivers
path = /var/lib/samba/printers

comment = My music files
path = /home/me/music
create mask = 0755

I used smbpasswd to give a passwort to the user friend.

When I try to connect to the share from another Ubuntu machine with smbclient, everything seems fine:

smbclient -U friend //

I can call dir, and I see the content of the directory.

However, when I want to connect the network drive from a Windows 7 machine (\\\share with user WORKGROUP\friend), I get the error that the network address is not reachable (I cannot tell the exact error message, because I have a German Windows version). The error is misleading, because I can ping from the Windows machine.

I guess I am not the first person to run into this, but Googling for "samba" and "network unreachable" doesn't help. I hope somebody can tell me what's wrong with my config, and what's the difference between running smbclient and connecting from Windows.

share|improve this question
This question appears to be abandoned, if you are experiencing a similar issue please ask a new question with details pertaining to your problem. If you feel this question is not abandoned, please flag the question explaining that. I am flagging this for closure. Regards, – Ringtail Mar 29 '12 at 4:13

Netscan (for windows) is a very handy tool for browsing lan. There is a similar application for linux too, named ---ShareScanner (netscan for linux). You can download it from:

The site contains 32 and 64 bit debian and rpm packages for easy installation. It is actually a gui for smbclient

share|improve this answer
(Using third party software is always a users risk) – Ringtail Mar 29 '12 at 4:14

Windows 7 uses SMB2 protocol. If you are running Samba 3.5 or earlier, it supports SMB1 and may not be completely compatible. SMB2 support was added to Samba in version 3.6 . NOTE: The newest verson of MacOS "Mavericks" will support SMB2 also starting in Fall 2013.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.