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
[global] 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 [printers] comment = All Printers path = /var/spool/samba create mask = 0700 printable = Yes browseable = No [print$] comment = Printer Drivers path = /var/lib/samba/printers [share] comment = My music files path = /home/me/music create mask = 0755
smbpasswd to give a passwort to the user
When I try to connect to the share from another Ubuntu machine with
smbclient, everything seems fine:
smbclient -U friend //192.168.1.2/share
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 (
\\192.168.1.2\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 192.168.1.2 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.