“Failed to retrieve share list from server” error when browsing a share with NautilusHow to share files...

Contradiction proof for inequality of P and NP?

Older movie/show about humans on derelict alien warship which refuels by passing through a star

Is there a word for the censored part of a video?

Is there metaphorical meaning of "aus der Haft entlassen"?

Could moose/elk survive in the Amazon forest?

"The cow" OR "a cow" OR "cows" in this context

What is the term for a person whose job is to place products on shelves in stores?

What is the most expensive material in the world that could be used to create Pun-Pun's lute?

Philosophical question on logistic regression: why isn't the optimal threshold value trained?

How to not starve gigantic beasts

Does the damage from the Absorb Elements spell apply to your next attack, or to your first attack on your next turn?

Is Electric Central Heating worth it if using Solar Panels?

NPN: Not fully sinking to GND

What is purpose of DB Browser(dbbrowser.aspx) under admin tool?

A strange hotel

How can I wire a 9-position switch so that each position turns on one more LED than the one before?

Was Dennis Ritchie being too modest in this quote about C and Pascal?

What's the difference between using dependency injection with a container and using a service locator?

Why is the underscore command _ useful?

Where was the County of Thurn und Taxis located?

Work requires me to come in early to start computer but wont let me clock in to get paid for it

A Paper Record is What I Hamper

Which big number is bigger?

Is there really no use for MD5 anymore?



“Failed to retrieve share list from server” error when browsing a share with Nautilus


How to share files through the local network?How do I completely remove Samba?Connecting to Windows7 share gives mount error“failed to retrieve share list from server: No Such File or directory” while trying to access windows sharesUbuntu shares not visible on the networkModify Ubuntu 14.04 'Connect to Server' source codeSeaGate FreeAgent External Hard Drive Keeps Auto-mounting RepeatedlyShare between Ubuntu machinesCan't browse samba share, get a “Cannot retrieve share list from server” errorNautilus file copy from smb://server/share is 25Msec but when I mount its 4MsecWhy am I unable to mount file shares between two ubuntu machines?“failed to retrieve share list from server: No Such File or directory” while trying to access windows sharesWhy are browsing samba shares from Ubuntu (Nautilus) so much slower than browsing from WindowsModule cifs not found on NanoPi M3 Ubuntu Core 15.10 although cifs-utils installs correctlymount error(115) w/ Windows 10 share. Error connecting to socket“failed to retrieve share list from server: file already exists” (Can't access samba shares after 18.04) update






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







39















A bit before upgrading from 10.04 to 11.10, my Ubuntu desktop stopped allowing me to access my Windows share directories. I figured I'd upgrade to 11.10 and the problem would get fixed but no.



Whenever I click on a Windows network domain using Nautilus, the following message pops up.:




Unable to mount location - Failed to retrieve share list from server




Where do I start troubleshooting this problem? I am getting desperate now :(



I tried



sudo mount -t cifs //SomeMachine/SomeShare some_directory


and I get



mount error(115): Operation now in progress


Strangely enough, I got a popup stating:



Could not display network:/// Error: Dbus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply ...









share|improve this question

























  • Is this a network you control? Can you look on the server logs to check for errors (Windows Event Logs, etc). Can you check in your own logs (/var/log/syslog) and report any anomalies?

    – dpb
    Nov 2 '11 at 15:08











  • Nothing pops up in /var/log/syslog related to the matter :(

    – jldupont
    Nov 2 '11 at 15:23











  • Have a look here had an user with a similar problem.

    – Bruno Pereira
    Nov 2 '11 at 15:27











  • Follow the steps we used there an edit your q with the results.

    – Bruno Pereira
    Nov 2 '11 at 15:28













  • @brunopereira81 I've checked out your link to no avail. The problem is on my ubuntu machine side. It used to work just fine up until some update on 10.04 :(

    – jldupont
    Nov 2 '11 at 15:36


















39















A bit before upgrading from 10.04 to 11.10, my Ubuntu desktop stopped allowing me to access my Windows share directories. I figured I'd upgrade to 11.10 and the problem would get fixed but no.



Whenever I click on a Windows network domain using Nautilus, the following message pops up.:




Unable to mount location - Failed to retrieve share list from server




Where do I start troubleshooting this problem? I am getting desperate now :(



I tried



sudo mount -t cifs //SomeMachine/SomeShare some_directory


and I get



mount error(115): Operation now in progress


Strangely enough, I got a popup stating:



Could not display network:/// Error: Dbus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply ...









share|improve this question

























  • Is this a network you control? Can you look on the server logs to check for errors (Windows Event Logs, etc). Can you check in your own logs (/var/log/syslog) and report any anomalies?

    – dpb
    Nov 2 '11 at 15:08











  • Nothing pops up in /var/log/syslog related to the matter :(

    – jldupont
    Nov 2 '11 at 15:23











  • Have a look here had an user with a similar problem.

    – Bruno Pereira
    Nov 2 '11 at 15:27











  • Follow the steps we used there an edit your q with the results.

    – Bruno Pereira
    Nov 2 '11 at 15:28













  • @brunopereira81 I've checked out your link to no avail. The problem is on my ubuntu machine side. It used to work just fine up until some update on 10.04 :(

    – jldupont
    Nov 2 '11 at 15:36














39












39








39


9






A bit before upgrading from 10.04 to 11.10, my Ubuntu desktop stopped allowing me to access my Windows share directories. I figured I'd upgrade to 11.10 and the problem would get fixed but no.



Whenever I click on a Windows network domain using Nautilus, the following message pops up.:




Unable to mount location - Failed to retrieve share list from server




Where do I start troubleshooting this problem? I am getting desperate now :(



I tried



sudo mount -t cifs //SomeMachine/SomeShare some_directory


and I get



mount error(115): Operation now in progress


Strangely enough, I got a popup stating:



Could not display network:/// Error: Dbus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply ...









share|improve this question
















A bit before upgrading from 10.04 to 11.10, my Ubuntu desktop stopped allowing me to access my Windows share directories. I figured I'd upgrade to 11.10 and the problem would get fixed but no.



Whenever I click on a Windows network domain using Nautilus, the following message pops up.:




Unable to mount location - Failed to retrieve share list from server




Where do I start troubleshooting this problem? I am getting desperate now :(



I tried



sudo mount -t cifs //SomeMachine/SomeShare some_directory


and I get



mount error(115): Operation now in progress


Strangely enough, I got a popup stating:



Could not display network:/// Error: Dbus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply ...






samba






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 15 '17 at 6:35









d a i s y

3,40782444




3,40782444










asked Nov 2 '11 at 14:27









jldupontjldupont

4112512




4112512













  • Is this a network you control? Can you look on the server logs to check for errors (Windows Event Logs, etc). Can you check in your own logs (/var/log/syslog) and report any anomalies?

    – dpb
    Nov 2 '11 at 15:08











  • Nothing pops up in /var/log/syslog related to the matter :(

    – jldupont
    Nov 2 '11 at 15:23











  • Have a look here had an user with a similar problem.

    – Bruno Pereira
    Nov 2 '11 at 15:27











  • Follow the steps we used there an edit your q with the results.

    – Bruno Pereira
    Nov 2 '11 at 15:28













  • @brunopereira81 I've checked out your link to no avail. The problem is on my ubuntu machine side. It used to work just fine up until some update on 10.04 :(

    – jldupont
    Nov 2 '11 at 15:36



















  • Is this a network you control? Can you look on the server logs to check for errors (Windows Event Logs, etc). Can you check in your own logs (/var/log/syslog) and report any anomalies?

    – dpb
    Nov 2 '11 at 15:08











  • Nothing pops up in /var/log/syslog related to the matter :(

    – jldupont
    Nov 2 '11 at 15:23











  • Have a look here had an user with a similar problem.

    – Bruno Pereira
    Nov 2 '11 at 15:27











  • Follow the steps we used there an edit your q with the results.

    – Bruno Pereira
    Nov 2 '11 at 15:28













  • @brunopereira81 I've checked out your link to no avail. The problem is on my ubuntu machine side. It used to work just fine up until some update on 10.04 :(

    – jldupont
    Nov 2 '11 at 15:36

















Is this a network you control? Can you look on the server logs to check for errors (Windows Event Logs, etc). Can you check in your own logs (/var/log/syslog) and report any anomalies?

– dpb
Nov 2 '11 at 15:08





Is this a network you control? Can you look on the server logs to check for errors (Windows Event Logs, etc). Can you check in your own logs (/var/log/syslog) and report any anomalies?

– dpb
Nov 2 '11 at 15:08













Nothing pops up in /var/log/syslog related to the matter :(

– jldupont
Nov 2 '11 at 15:23





Nothing pops up in /var/log/syslog related to the matter :(

– jldupont
Nov 2 '11 at 15:23













Have a look here had an user with a similar problem.

– Bruno Pereira
Nov 2 '11 at 15:27





Have a look here had an user with a similar problem.

– Bruno Pereira
Nov 2 '11 at 15:27













Follow the steps we used there an edit your q with the results.

– Bruno Pereira
Nov 2 '11 at 15:28







Follow the steps we used there an edit your q with the results.

– Bruno Pereira
Nov 2 '11 at 15:28















@brunopereira81 I've checked out your link to no avail. The problem is on my ubuntu machine side. It used to work just fine up until some update on 10.04 :(

– jldupont
Nov 2 '11 at 15:36





@brunopereira81 I've checked out your link to no avail. The problem is on my ubuntu machine side. It used to work just fine up until some update on 10.04 :(

– jldupont
Nov 2 '11 at 15:36










11 Answers
11






active

oldest

votes


















13














This is the true answer of your question. I also had the same problem.



Run terminal and enter this command



gksudo gedit /etc/hosts


and add computer ip address and name in hosts file. Save and exit.



Sample ip and name:



192.168.120.65    blablaPcName


Thats all.






share|improve this answer





















  • 3





    And what do you suggest for when the other computer doesn't have a static IP? Not everyone has control over the router.

    – Fambida
    Jan 1 '14 at 20:12






  • 3





    On what pc do you add these lines? on the samba server or on the client? What adress do you add? The server address in the client? The Client address in the server? The server address in the server? The client address in the client?

    – frepie
    Dec 13 '16 at 3:20



















11














I found this advice from Gord Nickerson worked for me:
The error message is 'failed to retrieve share list from server' so it cannot browse a Windows 7 pc or a Ubuntu 10 pc or a mac desktop pc.



First of all, the Samba daemons smbd and nmbd must both be running for network browsing to work. They can be started with service, or with systemctl start for the newer systemd-based releases of Ubuntu.



smbtree lists all the shares from machines on the network.



So, off to /etc/samba and we sudo pico smb.conf.



The name resolve order uses hosts files first and broadcasts last and it is commented out! Maybe we change that to:



name resolve order = bcast host


and then restart the servers with service smbd restart and service nmbd restart



Works! This is an awful mistake to make in an upgrade. Upgrade should not break what is working, particularly something as important as networking. Good thing i recall the manual work you had to do to get samba working back in redhat 5 and 6.






share|improve this answer


























  • do you know if this should work on 12.10?

    – Aquarius Power
    Nov 15 '13 at 12:27











  • This worked for me on 12.04

    – Jonathan
    Mar 11 '14 at 15:42











  • Just wanted to note - this worked for me on Xubuntu 14.04!

    – nc4pk
    May 13 '15 at 23:39











  • Didn't work ...

    – Antinous
    Jun 29 '17 at 8:31



















3














It's possible this is a general error connecting to the system:




  • http://forums.gentoo.org/viewtopic-t-895820-start-0.html


In the above thread case, there was a mismatch between name and IP address, and nmblookup helped determine the problem. Also, this page seems to have some good troubleshooting tips




  • http://www.linuceum.com/Server/srvSambaTrouble.php


That I'm copying out:




  • Put smbclient into debugging mode, output should show up in dmesg (-d|--debuglevel=level)

  • smbclient -L //<IP of Samba Server> -U <server user>

  • nmblookup {name}

  • Can you mount from other systems?


Edit up your question if you do more troubleshooting.






share|improve this answer































    2














    With Ubuntu 14.04 :



    This error can be caused by a netbios name having a size greater than 15 characters.
    It should generate logs in the file /var/log/samba/log.smbd looking like this :



    register_name: NetBIOS name NAME-OF-PC-TOO-LONG is too long. Truncating to


    This error can be fixed by editing the file /etc/samba/smb.conf and adding the following line :



    netbios name = NAME-OF-PC


    NAME-OF-PC shall not have more than 15 characters.






    share|improve this answer































      1














      I've had very good results in mixed network environments (Windows/Ubuntu) with this method:




      1. Press Alt+F2 and type: gksu gedit /etc/nsswitch.conf



      2. Look for this line:



        hosts:  files mdns4_minimal [NOTFOUND=return] dns mdns4



      3. Add wins so it looks like this:



        hosts:  files mdns4_minimal [NOTFOUND=return] wins dns mdns4



      4. Install the "winbind" package: sudo apt-get install winbind



        (Or via Software Center or Synaptic.)



      5. Reboot or restart your network.







      share|improve this answer

































        1














        Just add "allow out" to the firewall:




        • Port 137/UDP - used by nmbd

        • Port 138/UDP - used by nmbd

        • Port 139/TCP - used by smbd

        • Port 445/TCP - used by smbd


        And it will work, and if you do not know how to, just install "gufw", and use the "+" and then the "simple tab".






        share|improve this answer

































          0














          My problem was due to /etc/samba/smb.conf. Searched for WORKGROUP and deleted the line after it which mentioned a localhost name. Make sure the WORKGROUP is the same for both config files on each machine. An all round way is to sudo apt-get purge samba (and/or remove ?) and then sudo apt-get install samba. This is how I solve the problem the first time round, after upgrading from 16.10 to 17.04 on one of my machines (16.10 was buggy for me). I have two machines now: 16.04 and 17.04.






          share|improve this answer

































            0














            I had this problem and solved it by installing package gvfs-bin. Except for gvfs-bin, most of the gvfs packages were already installed: gvfs, -common, -libs, -daemons, and -backends.






            share|improve this answer































              0














              Try logging into a Windows box from Ubuntu using Files. Go to "Other Locations" and "Connect to Serer" down the bottom. Use smb://username@serveraddress. This worked for me.






              share|improve this answer































                0














                The problem (at least in Unbuntu 18.04 where I tried it) is that the following command:



                sudo ufw allow Samba


                will only add rules for Samba acting as a server. It will not add any rules for Samba acting as a client. But when you try to mount a remote share, that's what you are doing: in this scenario your machine is a client, and the remote machine is a server.



                Also, the "no reply" error is a hint that some firewall is messing things up. Machines do generally respond to requests. They may respond with an error, in which case you have other problems, but if they don't respond at all, then their packets are usually being eaten up by a firewall.



                The rules that allow Samba to act as a server are not sufficient to also allow Samba to act as a client, because the remote machines respond from their own port 137, but the local port on which these responses arrive is not 137, it is some random port.



                To solve this problem, execute the following command:



                sudo ufw allow in proto udp from any port 137,138 to any


                This will allow UDP packets to arrive into any local port as long as they are originating from port 137 or 138 of the remote computer. The port 138 is probably not necessary, as I have only seen packets arriving from 137, but you never know.



                This is probably insecure, because the originating port can be spoofed, but let's not be paranoid.



                This fixed it for me.






                share|improve this answer































                  -1














                  I could only see my samba server by ip address.



                  Switching bcast to 1st in 'name resolve order = bcast lmhosts hosts wins'. And restarting samba. Btw this 1 line restarts samba.



                  sudo service samba restart


                  That didn't work either.



                  I went to look in /etc/samba/lmhosts to check it & no file! So I made lmhosts.



                  $ sudo nano /etc/samba/lmhosts   
                  10.0.2.2 server_name


                  I still couldn't search the server name.
                  Then I thought wait, the computer name & samba name are different. So I edited hosts & hostname, changing them to the samba server's name. Careful hostname only has one word in it. The computer name no # comments.



                  /etc/hosts    
                  /etc/hostname
                  $ sudo reboot


                  Now it just works. I can just click network in nautilus or caja and the server just pops up! On all clients, all are linux or android. Even on an old debian squeeze machine.






                  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%2f74789%2ffailed-to-retrieve-share-list-from-server-error-when-browsing-a-share-with-nau%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown

























                    11 Answers
                    11






                    active

                    oldest

                    votes








                    11 Answers
                    11






                    active

                    oldest

                    votes









                    active

                    oldest

                    votes






                    active

                    oldest

                    votes









                    13














                    This is the true answer of your question. I also had the same problem.



                    Run terminal and enter this command



                    gksudo gedit /etc/hosts


                    and add computer ip address and name in hosts file. Save and exit.



                    Sample ip and name:



                    192.168.120.65    blablaPcName


                    Thats all.






                    share|improve this answer





















                    • 3





                      And what do you suggest for when the other computer doesn't have a static IP? Not everyone has control over the router.

                      – Fambida
                      Jan 1 '14 at 20:12






                    • 3





                      On what pc do you add these lines? on the samba server or on the client? What adress do you add? The server address in the client? The Client address in the server? The server address in the server? The client address in the client?

                      – frepie
                      Dec 13 '16 at 3:20
















                    13














                    This is the true answer of your question. I also had the same problem.



                    Run terminal and enter this command



                    gksudo gedit /etc/hosts


                    and add computer ip address and name in hosts file. Save and exit.



                    Sample ip and name:



                    192.168.120.65    blablaPcName


                    Thats all.






                    share|improve this answer





















                    • 3





                      And what do you suggest for when the other computer doesn't have a static IP? Not everyone has control over the router.

                      – Fambida
                      Jan 1 '14 at 20:12






                    • 3





                      On what pc do you add these lines? on the samba server or on the client? What adress do you add? The server address in the client? The Client address in the server? The server address in the server? The client address in the client?

                      – frepie
                      Dec 13 '16 at 3:20














                    13












                    13








                    13







                    This is the true answer of your question. I also had the same problem.



                    Run terminal and enter this command



                    gksudo gedit /etc/hosts


                    and add computer ip address and name in hosts file. Save and exit.



                    Sample ip and name:



                    192.168.120.65    blablaPcName


                    Thats all.






                    share|improve this answer















                    This is the true answer of your question. I also had the same problem.



                    Run terminal and enter this command



                    gksudo gedit /etc/hosts


                    and add computer ip address and name in hosts file. Save and exit.



                    Sample ip and name:



                    192.168.120.65    blablaPcName


                    Thats all.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Sep 20 '12 at 14:11







                    user76204

















                    answered Sep 20 '12 at 13:17









                    Görkem SARIGörkem SARI

                    14713




                    14713








                    • 3





                      And what do you suggest for when the other computer doesn't have a static IP? Not everyone has control over the router.

                      – Fambida
                      Jan 1 '14 at 20:12






                    • 3





                      On what pc do you add these lines? on the samba server or on the client? What adress do you add? The server address in the client? The Client address in the server? The server address in the server? The client address in the client?

                      – frepie
                      Dec 13 '16 at 3:20














                    • 3





                      And what do you suggest for when the other computer doesn't have a static IP? Not everyone has control over the router.

                      – Fambida
                      Jan 1 '14 at 20:12






                    • 3





                      On what pc do you add these lines? on the samba server or on the client? What adress do you add? The server address in the client? The Client address in the server? The server address in the server? The client address in the client?

                      – frepie
                      Dec 13 '16 at 3:20








                    3




                    3





                    And what do you suggest for when the other computer doesn't have a static IP? Not everyone has control over the router.

                    – Fambida
                    Jan 1 '14 at 20:12





                    And what do you suggest for when the other computer doesn't have a static IP? Not everyone has control over the router.

                    – Fambida
                    Jan 1 '14 at 20:12




                    3




                    3





                    On what pc do you add these lines? on the samba server or on the client? What adress do you add? The server address in the client? The Client address in the server? The server address in the server? The client address in the client?

                    – frepie
                    Dec 13 '16 at 3:20





                    On what pc do you add these lines? on the samba server or on the client? What adress do you add? The server address in the client? The Client address in the server? The server address in the server? The client address in the client?

                    – frepie
                    Dec 13 '16 at 3:20













                    11














                    I found this advice from Gord Nickerson worked for me:
                    The error message is 'failed to retrieve share list from server' so it cannot browse a Windows 7 pc or a Ubuntu 10 pc or a mac desktop pc.



                    First of all, the Samba daemons smbd and nmbd must both be running for network browsing to work. They can be started with service, or with systemctl start for the newer systemd-based releases of Ubuntu.



                    smbtree lists all the shares from machines on the network.



                    So, off to /etc/samba and we sudo pico smb.conf.



                    The name resolve order uses hosts files first and broadcasts last and it is commented out! Maybe we change that to:



                    name resolve order = bcast host


                    and then restart the servers with service smbd restart and service nmbd restart



                    Works! This is an awful mistake to make in an upgrade. Upgrade should not break what is working, particularly something as important as networking. Good thing i recall the manual work you had to do to get samba working back in redhat 5 and 6.






                    share|improve this answer


























                    • do you know if this should work on 12.10?

                      – Aquarius Power
                      Nov 15 '13 at 12:27











                    • This worked for me on 12.04

                      – Jonathan
                      Mar 11 '14 at 15:42











                    • Just wanted to note - this worked for me on Xubuntu 14.04!

                      – nc4pk
                      May 13 '15 at 23:39











                    • Didn't work ...

                      – Antinous
                      Jun 29 '17 at 8:31
















                    11














                    I found this advice from Gord Nickerson worked for me:
                    The error message is 'failed to retrieve share list from server' so it cannot browse a Windows 7 pc or a Ubuntu 10 pc or a mac desktop pc.



                    First of all, the Samba daemons smbd and nmbd must both be running for network browsing to work. They can be started with service, or with systemctl start for the newer systemd-based releases of Ubuntu.



                    smbtree lists all the shares from machines on the network.



                    So, off to /etc/samba and we sudo pico smb.conf.



                    The name resolve order uses hosts files first and broadcasts last and it is commented out! Maybe we change that to:



                    name resolve order = bcast host


                    and then restart the servers with service smbd restart and service nmbd restart



                    Works! This is an awful mistake to make in an upgrade. Upgrade should not break what is working, particularly something as important as networking. Good thing i recall the manual work you had to do to get samba working back in redhat 5 and 6.






                    share|improve this answer


























                    • do you know if this should work on 12.10?

                      – Aquarius Power
                      Nov 15 '13 at 12:27











                    • This worked for me on 12.04

                      – Jonathan
                      Mar 11 '14 at 15:42











                    • Just wanted to note - this worked for me on Xubuntu 14.04!

                      – nc4pk
                      May 13 '15 at 23:39











                    • Didn't work ...

                      – Antinous
                      Jun 29 '17 at 8:31














                    11












                    11








                    11







                    I found this advice from Gord Nickerson worked for me:
                    The error message is 'failed to retrieve share list from server' so it cannot browse a Windows 7 pc or a Ubuntu 10 pc or a mac desktop pc.



                    First of all, the Samba daemons smbd and nmbd must both be running for network browsing to work. They can be started with service, or with systemctl start for the newer systemd-based releases of Ubuntu.



                    smbtree lists all the shares from machines on the network.



                    So, off to /etc/samba and we sudo pico smb.conf.



                    The name resolve order uses hosts files first and broadcasts last and it is commented out! Maybe we change that to:



                    name resolve order = bcast host


                    and then restart the servers with service smbd restart and service nmbd restart



                    Works! This is an awful mistake to make in an upgrade. Upgrade should not break what is working, particularly something as important as networking. Good thing i recall the manual work you had to do to get samba working back in redhat 5 and 6.






                    share|improve this answer















                    I found this advice from Gord Nickerson worked for me:
                    The error message is 'failed to retrieve share list from server' so it cannot browse a Windows 7 pc or a Ubuntu 10 pc or a mac desktop pc.



                    First of all, the Samba daemons smbd and nmbd must both be running for network browsing to work. They can be started with service, or with systemctl start for the newer systemd-based releases of Ubuntu.



                    smbtree lists all the shares from machines on the network.



                    So, off to /etc/samba and we sudo pico smb.conf.



                    The name resolve order uses hosts files first and broadcasts last and it is commented out! Maybe we change that to:



                    name resolve order = bcast host


                    and then restart the servers with service smbd restart and service nmbd restart



                    Works! This is an awful mistake to make in an upgrade. Upgrade should not break what is working, particularly something as important as networking. Good thing i recall the manual work you had to do to get samba working back in redhat 5 and 6.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited May 11 '16 at 1:58









                    enigmaticPhysicist

                    41847




                    41847










                    answered Jan 29 '12 at 1:15









                    Jeff KingJeff King

                    11113




                    11113













                    • do you know if this should work on 12.10?

                      – Aquarius Power
                      Nov 15 '13 at 12:27











                    • This worked for me on 12.04

                      – Jonathan
                      Mar 11 '14 at 15:42











                    • Just wanted to note - this worked for me on Xubuntu 14.04!

                      – nc4pk
                      May 13 '15 at 23:39











                    • Didn't work ...

                      – Antinous
                      Jun 29 '17 at 8:31



















                    • do you know if this should work on 12.10?

                      – Aquarius Power
                      Nov 15 '13 at 12:27











                    • This worked for me on 12.04

                      – Jonathan
                      Mar 11 '14 at 15:42











                    • Just wanted to note - this worked for me on Xubuntu 14.04!

                      – nc4pk
                      May 13 '15 at 23:39











                    • Didn't work ...

                      – Antinous
                      Jun 29 '17 at 8:31

















                    do you know if this should work on 12.10?

                    – Aquarius Power
                    Nov 15 '13 at 12:27





                    do you know if this should work on 12.10?

                    – Aquarius Power
                    Nov 15 '13 at 12:27













                    This worked for me on 12.04

                    – Jonathan
                    Mar 11 '14 at 15:42





                    This worked for me on 12.04

                    – Jonathan
                    Mar 11 '14 at 15:42













                    Just wanted to note - this worked for me on Xubuntu 14.04!

                    – nc4pk
                    May 13 '15 at 23:39





                    Just wanted to note - this worked for me on Xubuntu 14.04!

                    – nc4pk
                    May 13 '15 at 23:39













                    Didn't work ...

                    – Antinous
                    Jun 29 '17 at 8:31





                    Didn't work ...

                    – Antinous
                    Jun 29 '17 at 8:31











                    3














                    It's possible this is a general error connecting to the system:




                    • http://forums.gentoo.org/viewtopic-t-895820-start-0.html


                    In the above thread case, there was a mismatch between name and IP address, and nmblookup helped determine the problem. Also, this page seems to have some good troubleshooting tips




                    • http://www.linuceum.com/Server/srvSambaTrouble.php


                    That I'm copying out:




                    • Put smbclient into debugging mode, output should show up in dmesg (-d|--debuglevel=level)

                    • smbclient -L //<IP of Samba Server> -U <server user>

                    • nmblookup {name}

                    • Can you mount from other systems?


                    Edit up your question if you do more troubleshooting.






                    share|improve this answer




























                      3














                      It's possible this is a general error connecting to the system:




                      • http://forums.gentoo.org/viewtopic-t-895820-start-0.html


                      In the above thread case, there was a mismatch between name and IP address, and nmblookup helped determine the problem. Also, this page seems to have some good troubleshooting tips




                      • http://www.linuceum.com/Server/srvSambaTrouble.php


                      That I'm copying out:




                      • Put smbclient into debugging mode, output should show up in dmesg (-d|--debuglevel=level)

                      • smbclient -L //<IP of Samba Server> -U <server user>

                      • nmblookup {name}

                      • Can you mount from other systems?


                      Edit up your question if you do more troubleshooting.






                      share|improve this answer


























                        3












                        3








                        3







                        It's possible this is a general error connecting to the system:




                        • http://forums.gentoo.org/viewtopic-t-895820-start-0.html


                        In the above thread case, there was a mismatch between name and IP address, and nmblookup helped determine the problem. Also, this page seems to have some good troubleshooting tips




                        • http://www.linuceum.com/Server/srvSambaTrouble.php


                        That I'm copying out:




                        • Put smbclient into debugging mode, output should show up in dmesg (-d|--debuglevel=level)

                        • smbclient -L //<IP of Samba Server> -U <server user>

                        • nmblookup {name}

                        • Can you mount from other systems?


                        Edit up your question if you do more troubleshooting.






                        share|improve this answer













                        It's possible this is a general error connecting to the system:




                        • http://forums.gentoo.org/viewtopic-t-895820-start-0.html


                        In the above thread case, there was a mismatch between name and IP address, and nmblookup helped determine the problem. Also, this page seems to have some good troubleshooting tips




                        • http://www.linuceum.com/Server/srvSambaTrouble.php


                        That I'm copying out:




                        • Put smbclient into debugging mode, output should show up in dmesg (-d|--debuglevel=level)

                        • smbclient -L //<IP of Samba Server> -U <server user>

                        • nmblookup {name}

                        • Can you mount from other systems?


                        Edit up your question if you do more troubleshooting.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Nov 2 '11 at 20:50









                        dpbdpb

                        5,28412250




                        5,28412250























                            2














                            With Ubuntu 14.04 :



                            This error can be caused by a netbios name having a size greater than 15 characters.
                            It should generate logs in the file /var/log/samba/log.smbd looking like this :



                            register_name: NetBIOS name NAME-OF-PC-TOO-LONG is too long. Truncating to


                            This error can be fixed by editing the file /etc/samba/smb.conf and adding the following line :



                            netbios name = NAME-OF-PC


                            NAME-OF-PC shall not have more than 15 characters.






                            share|improve this answer




























                              2














                              With Ubuntu 14.04 :



                              This error can be caused by a netbios name having a size greater than 15 characters.
                              It should generate logs in the file /var/log/samba/log.smbd looking like this :



                              register_name: NetBIOS name NAME-OF-PC-TOO-LONG is too long. Truncating to


                              This error can be fixed by editing the file /etc/samba/smb.conf and adding the following line :



                              netbios name = NAME-OF-PC


                              NAME-OF-PC shall not have more than 15 characters.






                              share|improve this answer


























                                2












                                2








                                2







                                With Ubuntu 14.04 :



                                This error can be caused by a netbios name having a size greater than 15 characters.
                                It should generate logs in the file /var/log/samba/log.smbd looking like this :



                                register_name: NetBIOS name NAME-OF-PC-TOO-LONG is too long. Truncating to


                                This error can be fixed by editing the file /etc/samba/smb.conf and adding the following line :



                                netbios name = NAME-OF-PC


                                NAME-OF-PC shall not have more than 15 characters.






                                share|improve this answer













                                With Ubuntu 14.04 :



                                This error can be caused by a netbios name having a size greater than 15 characters.
                                It should generate logs in the file /var/log/samba/log.smbd looking like this :



                                register_name: NetBIOS name NAME-OF-PC-TOO-LONG is too long. Truncating to


                                This error can be fixed by editing the file /etc/samba/smb.conf and adding the following line :



                                netbios name = NAME-OF-PC


                                NAME-OF-PC shall not have more than 15 characters.







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Feb 8 '15 at 18:59









                                AizeLaunaAizeLauna

                                211




                                211























                                    1














                                    I've had very good results in mixed network environments (Windows/Ubuntu) with this method:




                                    1. Press Alt+F2 and type: gksu gedit /etc/nsswitch.conf



                                    2. Look for this line:



                                      hosts:  files mdns4_minimal [NOTFOUND=return] dns mdns4



                                    3. Add wins so it looks like this:



                                      hosts:  files mdns4_minimal [NOTFOUND=return] wins dns mdns4



                                    4. Install the "winbind" package: sudo apt-get install winbind



                                      (Or via Software Center or Synaptic.)



                                    5. Reboot or restart your network.







                                    share|improve this answer






























                                      1














                                      I've had very good results in mixed network environments (Windows/Ubuntu) with this method:




                                      1. Press Alt+F2 and type: gksu gedit /etc/nsswitch.conf



                                      2. Look for this line:



                                        hosts:  files mdns4_minimal [NOTFOUND=return] dns mdns4



                                      3. Add wins so it looks like this:



                                        hosts:  files mdns4_minimal [NOTFOUND=return] wins dns mdns4



                                      4. Install the "winbind" package: sudo apt-get install winbind



                                        (Or via Software Center or Synaptic.)



                                      5. Reboot or restart your network.







                                      share|improve this answer




























                                        1












                                        1








                                        1







                                        I've had very good results in mixed network environments (Windows/Ubuntu) with this method:




                                        1. Press Alt+F2 and type: gksu gedit /etc/nsswitch.conf



                                        2. Look for this line:



                                          hosts:  files mdns4_minimal [NOTFOUND=return] dns mdns4



                                        3. Add wins so it looks like this:



                                          hosts:  files mdns4_minimal [NOTFOUND=return] wins dns mdns4



                                        4. Install the "winbind" package: sudo apt-get install winbind



                                          (Or via Software Center or Synaptic.)



                                        5. Reboot or restart your network.







                                        share|improve this answer















                                        I've had very good results in mixed network environments (Windows/Ubuntu) with this method:




                                        1. Press Alt+F2 and type: gksu gedit /etc/nsswitch.conf



                                        2. Look for this line:



                                          hosts:  files mdns4_minimal [NOTFOUND=return] dns mdns4



                                        3. Add wins so it looks like this:



                                          hosts:  files mdns4_minimal [NOTFOUND=return] wins dns mdns4



                                        4. Install the "winbind" package: sudo apt-get install winbind



                                          (Or via Software Center or Synaptic.)



                                        5. Reboot or restart your network.








                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Sep 9 '13 at 21:15









                                        Eliah Kagan

                                        83.6k22229369




                                        83.6k22229369










                                        answered Nov 2 '11 at 22:08









                                        nejodenejode

                                        47122




                                        47122























                                            1














                                            Just add "allow out" to the firewall:




                                            • Port 137/UDP - used by nmbd

                                            • Port 138/UDP - used by nmbd

                                            • Port 139/TCP - used by smbd

                                            • Port 445/TCP - used by smbd


                                            And it will work, and if you do not know how to, just install "gufw", and use the "+" and then the "simple tab".






                                            share|improve this answer






























                                              1














                                              Just add "allow out" to the firewall:




                                              • Port 137/UDP - used by nmbd

                                              • Port 138/UDP - used by nmbd

                                              • Port 139/TCP - used by smbd

                                              • Port 445/TCP - used by smbd


                                              And it will work, and if you do not know how to, just install "gufw", and use the "+" and then the "simple tab".






                                              share|improve this answer




























                                                1












                                                1








                                                1







                                                Just add "allow out" to the firewall:




                                                • Port 137/UDP - used by nmbd

                                                • Port 138/UDP - used by nmbd

                                                • Port 139/TCP - used by smbd

                                                • Port 445/TCP - used by smbd


                                                And it will work, and if you do not know how to, just install "gufw", and use the "+" and then the "simple tab".






                                                share|improve this answer















                                                Just add "allow out" to the firewall:




                                                • Port 137/UDP - used by nmbd

                                                • Port 138/UDP - used by nmbd

                                                • Port 139/TCP - used by smbd

                                                • Port 445/TCP - used by smbd


                                                And it will work, and if you do not know how to, just install "gufw", and use the "+" and then the "simple tab".







                                                share|improve this answer














                                                share|improve this answer



                                                share|improve this answer








                                                edited Sep 20 '13 at 0:23









                                                Eric Carvalho

                                                42.6k17118148




                                                42.6k17118148










                                                answered Sep 20 '13 at 0:04









                                                JoaoJoao

                                                191




                                                191























                                                    0














                                                    My problem was due to /etc/samba/smb.conf. Searched for WORKGROUP and deleted the line after it which mentioned a localhost name. Make sure the WORKGROUP is the same for both config files on each machine. An all round way is to sudo apt-get purge samba (and/or remove ?) and then sudo apt-get install samba. This is how I solve the problem the first time round, after upgrading from 16.10 to 17.04 on one of my machines (16.10 was buggy for me). I have two machines now: 16.04 and 17.04.






                                                    share|improve this answer






























                                                      0














                                                      My problem was due to /etc/samba/smb.conf. Searched for WORKGROUP and deleted the line after it which mentioned a localhost name. Make sure the WORKGROUP is the same for both config files on each machine. An all round way is to sudo apt-get purge samba (and/or remove ?) and then sudo apt-get install samba. This is how I solve the problem the first time round, after upgrading from 16.10 to 17.04 on one of my machines (16.10 was buggy for me). I have two machines now: 16.04 and 17.04.






                                                      share|improve this answer




























                                                        0












                                                        0








                                                        0







                                                        My problem was due to /etc/samba/smb.conf. Searched for WORKGROUP and deleted the line after it which mentioned a localhost name. Make sure the WORKGROUP is the same for both config files on each machine. An all round way is to sudo apt-get purge samba (and/or remove ?) and then sudo apt-get install samba. This is how I solve the problem the first time round, after upgrading from 16.10 to 17.04 on one of my machines (16.10 was buggy for me). I have two machines now: 16.04 and 17.04.






                                                        share|improve this answer















                                                        My problem was due to /etc/samba/smb.conf. Searched for WORKGROUP and deleted the line after it which mentioned a localhost name. Make sure the WORKGROUP is the same for both config files on each machine. An all round way is to sudo apt-get purge samba (and/or remove ?) and then sudo apt-get install samba. This is how I solve the problem the first time round, after upgrading from 16.10 to 17.04 on one of my machines (16.10 was buggy for me). I have two machines now: 16.04 and 17.04.







                                                        share|improve this answer














                                                        share|improve this answer



                                                        share|improve this answer








                                                        edited Jun 29 '17 at 16:25

























                                                        answered Jun 29 '17 at 8:41









                                                        AntinousAntinous

                                                        257311




                                                        257311























                                                            0














                                                            I had this problem and solved it by installing package gvfs-bin. Except for gvfs-bin, most of the gvfs packages were already installed: gvfs, -common, -libs, -daemons, and -backends.






                                                            share|improve this answer




























                                                              0














                                                              I had this problem and solved it by installing package gvfs-bin. Except for gvfs-bin, most of the gvfs packages were already installed: gvfs, -common, -libs, -daemons, and -backends.






                                                              share|improve this answer


























                                                                0












                                                                0








                                                                0







                                                                I had this problem and solved it by installing package gvfs-bin. Except for gvfs-bin, most of the gvfs packages were already installed: gvfs, -common, -libs, -daemons, and -backends.






                                                                share|improve this answer













                                                                I had this problem and solved it by installing package gvfs-bin. Except for gvfs-bin, most of the gvfs packages were already installed: gvfs, -common, -libs, -daemons, and -backends.







                                                                share|improve this answer












                                                                share|improve this answer



                                                                share|improve this answer










                                                                answered Apr 1 '18 at 18:58









                                                                TomTom

                                                                1




                                                                1























                                                                    0














                                                                    Try logging into a Windows box from Ubuntu using Files. Go to "Other Locations" and "Connect to Serer" down the bottom. Use smb://username@serveraddress. This worked for me.






                                                                    share|improve this answer




























                                                                      0














                                                                      Try logging into a Windows box from Ubuntu using Files. Go to "Other Locations" and "Connect to Serer" down the bottom. Use smb://username@serveraddress. This worked for me.






                                                                      share|improve this answer


























                                                                        0












                                                                        0








                                                                        0







                                                                        Try logging into a Windows box from Ubuntu using Files. Go to "Other Locations" and "Connect to Serer" down the bottom. Use smb://username@serveraddress. This worked for me.






                                                                        share|improve this answer













                                                                        Try logging into a Windows box from Ubuntu using Files. Go to "Other Locations" and "Connect to Serer" down the bottom. Use smb://username@serveraddress. This worked for me.







                                                                        share|improve this answer












                                                                        share|improve this answer



                                                                        share|improve this answer










                                                                        answered Nov 14 '18 at 0:51









                                                                        CoconutdogCoconutdog

                                                                        1




                                                                        1























                                                                            0














                                                                            The problem (at least in Unbuntu 18.04 where I tried it) is that the following command:



                                                                            sudo ufw allow Samba


                                                                            will only add rules for Samba acting as a server. It will not add any rules for Samba acting as a client. But when you try to mount a remote share, that's what you are doing: in this scenario your machine is a client, and the remote machine is a server.



                                                                            Also, the "no reply" error is a hint that some firewall is messing things up. Machines do generally respond to requests. They may respond with an error, in which case you have other problems, but if they don't respond at all, then their packets are usually being eaten up by a firewall.



                                                                            The rules that allow Samba to act as a server are not sufficient to also allow Samba to act as a client, because the remote machines respond from their own port 137, but the local port on which these responses arrive is not 137, it is some random port.



                                                                            To solve this problem, execute the following command:



                                                                            sudo ufw allow in proto udp from any port 137,138 to any


                                                                            This will allow UDP packets to arrive into any local port as long as they are originating from port 137 or 138 of the remote computer. The port 138 is probably not necessary, as I have only seen packets arriving from 137, but you never know.



                                                                            This is probably insecure, because the originating port can be spoofed, but let's not be paranoid.



                                                                            This fixed it for me.






                                                                            share|improve this answer




























                                                                              0














                                                                              The problem (at least in Unbuntu 18.04 where I tried it) is that the following command:



                                                                              sudo ufw allow Samba


                                                                              will only add rules for Samba acting as a server. It will not add any rules for Samba acting as a client. But when you try to mount a remote share, that's what you are doing: in this scenario your machine is a client, and the remote machine is a server.



                                                                              Also, the "no reply" error is a hint that some firewall is messing things up. Machines do generally respond to requests. They may respond with an error, in which case you have other problems, but if they don't respond at all, then their packets are usually being eaten up by a firewall.



                                                                              The rules that allow Samba to act as a server are not sufficient to also allow Samba to act as a client, because the remote machines respond from their own port 137, but the local port on which these responses arrive is not 137, it is some random port.



                                                                              To solve this problem, execute the following command:



                                                                              sudo ufw allow in proto udp from any port 137,138 to any


                                                                              This will allow UDP packets to arrive into any local port as long as they are originating from port 137 or 138 of the remote computer. The port 138 is probably not necessary, as I have only seen packets arriving from 137, but you never know.



                                                                              This is probably insecure, because the originating port can be spoofed, but let's not be paranoid.



                                                                              This fixed it for me.






                                                                              share|improve this answer


























                                                                                0












                                                                                0








                                                                                0







                                                                                The problem (at least in Unbuntu 18.04 where I tried it) is that the following command:



                                                                                sudo ufw allow Samba


                                                                                will only add rules for Samba acting as a server. It will not add any rules for Samba acting as a client. But when you try to mount a remote share, that's what you are doing: in this scenario your machine is a client, and the remote machine is a server.



                                                                                Also, the "no reply" error is a hint that some firewall is messing things up. Machines do generally respond to requests. They may respond with an error, in which case you have other problems, but if they don't respond at all, then their packets are usually being eaten up by a firewall.



                                                                                The rules that allow Samba to act as a server are not sufficient to also allow Samba to act as a client, because the remote machines respond from their own port 137, but the local port on which these responses arrive is not 137, it is some random port.



                                                                                To solve this problem, execute the following command:



                                                                                sudo ufw allow in proto udp from any port 137,138 to any


                                                                                This will allow UDP packets to arrive into any local port as long as they are originating from port 137 or 138 of the remote computer. The port 138 is probably not necessary, as I have only seen packets arriving from 137, but you never know.



                                                                                This is probably insecure, because the originating port can be spoofed, but let's not be paranoid.



                                                                                This fixed it for me.






                                                                                share|improve this answer













                                                                                The problem (at least in Unbuntu 18.04 where I tried it) is that the following command:



                                                                                sudo ufw allow Samba


                                                                                will only add rules for Samba acting as a server. It will not add any rules for Samba acting as a client. But when you try to mount a remote share, that's what you are doing: in this scenario your machine is a client, and the remote machine is a server.



                                                                                Also, the "no reply" error is a hint that some firewall is messing things up. Machines do generally respond to requests. They may respond with an error, in which case you have other problems, but if they don't respond at all, then their packets are usually being eaten up by a firewall.



                                                                                The rules that allow Samba to act as a server are not sufficient to also allow Samba to act as a client, because the remote machines respond from their own port 137, but the local port on which these responses arrive is not 137, it is some random port.



                                                                                To solve this problem, execute the following command:



                                                                                sudo ufw allow in proto udp from any port 137,138 to any


                                                                                This will allow UDP packets to arrive into any local port as long as they are originating from port 137 or 138 of the remote computer. The port 138 is probably not necessary, as I have only seen packets arriving from 137, but you never know.



                                                                                This is probably insecure, because the originating port can be spoofed, but let's not be paranoid.



                                                                                This fixed it for me.







                                                                                share|improve this answer












                                                                                share|improve this answer



                                                                                share|improve this answer










                                                                                answered 14 hours ago









                                                                                Mike NakisMike Nakis

                                                                                1214




                                                                                1214























                                                                                    -1














                                                                                    I could only see my samba server by ip address.



                                                                                    Switching bcast to 1st in 'name resolve order = bcast lmhosts hosts wins'. And restarting samba. Btw this 1 line restarts samba.



                                                                                    sudo service samba restart


                                                                                    That didn't work either.



                                                                                    I went to look in /etc/samba/lmhosts to check it & no file! So I made lmhosts.



                                                                                    $ sudo nano /etc/samba/lmhosts   
                                                                                    10.0.2.2 server_name


                                                                                    I still couldn't search the server name.
                                                                                    Then I thought wait, the computer name & samba name are different. So I edited hosts & hostname, changing them to the samba server's name. Careful hostname only has one word in it. The computer name no # comments.



                                                                                    /etc/hosts    
                                                                                    /etc/hostname
                                                                                    $ sudo reboot


                                                                                    Now it just works. I can just click network in nautilus or caja and the server just pops up! On all clients, all are linux or android. Even on an old debian squeeze machine.






                                                                                    share|improve this answer






























                                                                                      -1














                                                                                      I could only see my samba server by ip address.



                                                                                      Switching bcast to 1st in 'name resolve order = bcast lmhosts hosts wins'. And restarting samba. Btw this 1 line restarts samba.



                                                                                      sudo service samba restart


                                                                                      That didn't work either.



                                                                                      I went to look in /etc/samba/lmhosts to check it & no file! So I made lmhosts.



                                                                                      $ sudo nano /etc/samba/lmhosts   
                                                                                      10.0.2.2 server_name


                                                                                      I still couldn't search the server name.
                                                                                      Then I thought wait, the computer name & samba name are different. So I edited hosts & hostname, changing them to the samba server's name. Careful hostname only has one word in it. The computer name no # comments.



                                                                                      /etc/hosts    
                                                                                      /etc/hostname
                                                                                      $ sudo reboot


                                                                                      Now it just works. I can just click network in nautilus or caja and the server just pops up! On all clients, all are linux or android. Even on an old debian squeeze machine.






                                                                                      share|improve this answer




























                                                                                        -1












                                                                                        -1








                                                                                        -1







                                                                                        I could only see my samba server by ip address.



                                                                                        Switching bcast to 1st in 'name resolve order = bcast lmhosts hosts wins'. And restarting samba. Btw this 1 line restarts samba.



                                                                                        sudo service samba restart


                                                                                        That didn't work either.



                                                                                        I went to look in /etc/samba/lmhosts to check it & no file! So I made lmhosts.



                                                                                        $ sudo nano /etc/samba/lmhosts   
                                                                                        10.0.2.2 server_name


                                                                                        I still couldn't search the server name.
                                                                                        Then I thought wait, the computer name & samba name are different. So I edited hosts & hostname, changing them to the samba server's name. Careful hostname only has one word in it. The computer name no # comments.



                                                                                        /etc/hosts    
                                                                                        /etc/hostname
                                                                                        $ sudo reboot


                                                                                        Now it just works. I can just click network in nautilus or caja and the server just pops up! On all clients, all are linux or android. Even on an old debian squeeze machine.






                                                                                        share|improve this answer















                                                                                        I could only see my samba server by ip address.



                                                                                        Switching bcast to 1st in 'name resolve order = bcast lmhosts hosts wins'. And restarting samba. Btw this 1 line restarts samba.



                                                                                        sudo service samba restart


                                                                                        That didn't work either.



                                                                                        I went to look in /etc/samba/lmhosts to check it & no file! So I made lmhosts.



                                                                                        $ sudo nano /etc/samba/lmhosts   
                                                                                        10.0.2.2 server_name


                                                                                        I still couldn't search the server name.
                                                                                        Then I thought wait, the computer name & samba name are different. So I edited hosts & hostname, changing them to the samba server's name. Careful hostname only has one word in it. The computer name no # comments.



                                                                                        /etc/hosts    
                                                                                        /etc/hostname
                                                                                        $ sudo reboot


                                                                                        Now it just works. I can just click network in nautilus or caja and the server just pops up! On all clients, all are linux or android. Even on an old debian squeeze machine.







                                                                                        share|improve this answer














                                                                                        share|improve this answer



                                                                                        share|improve this answer








                                                                                        edited Aug 30 '18 at 18:22

























                                                                                        answered Aug 30 '18 at 17:02









                                                                                        NedNed

                                                                                        12




                                                                                        12






























                                                                                            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%2f74789%2ffailed-to-retrieve-share-list-from-server-error-when-browsing-a-share-with-nau%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

                                                                                            List of shipwrecks in 1808...

                                                                                            Is there a lightweight tool to crop images quickly?Cropping Images using Command Line Tools OnlyHow to crop...

                                                                                            Unit packagekit.service is masked Announcing the arrival of Valued Associate #679: Cesar...