Connecting to samba share works with smbclient, but doesn't work with Windows 7












1















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):



[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 = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
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


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 //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.2share with user WORKGROUPfriend), 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.










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
















1















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):



[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 = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
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


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 //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.2share with user WORKGROUPfriend), 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.










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














1












1








1


1






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):



[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 = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
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


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 //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.2share with user WORKGROUPfriend), 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.










share|improve this question














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):



[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 = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
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


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 //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.2share with user WORKGROUPfriend), 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.







samba






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 23 '11 at 21:01









fabstabfabstab

10613




10613













  • 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



















  • 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

















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





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










2 Answers
2






active

oldest

votes


















0














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:



http://sharescanner.net84.net



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



















0














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








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f90086%2fconnecting-to-samba-share-works-with-smbclient-but-doesnt-work-with-windows-7%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    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:



    http://sharescanner.net84.net



    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
















    0














    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:



    http://sharescanner.net84.net



    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














    0












    0








    0







    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:



    http://sharescanner.net84.net



    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















    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:



    http://sharescanner.net84.net



    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














    share|improve this answer



    share|improve this answer








    edited Apr 4 '12 at 20:00

























    answered Jan 4 '12 at 20:30









    adnan kamiliadnan kamili

    685413




    685413













    • (Using third party software is always a users risk)

      – Ringtail
      Mar 29 '12 at 4:14



















    • (Using third party software is always a users risk)

      – Ringtail
      Mar 29 '12 at 4:14

















    (Using third party software is always a users risk)

    – Ringtail
    Mar 29 '12 at 4:14





    (Using third party software is always a users risk)

    – Ringtail
    Mar 29 '12 at 4:14













    0














    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




























      0














      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


























        0












        0








        0







        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













        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












        share|improve this answer



        share|improve this answer










        answered Jun 11 '13 at 22:10









        djangofandjangofan

        1,59621727




        1,59621727






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f90086%2fconnecting-to-samba-share-works-with-smbclient-but-doesnt-work-with-windows-7%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido