Page 51 of 61 FirstFirst ... 414950515253 ... LastLast
Results 501 to 510 of 610

Thread: Howto: Fix Windows share browsing issues

  1. #501
    Join Date
    Jan 2007
    Location
    Texas USA
    Beans
    34
    Distro
    Ubuntu

    Unhappy Re: Howto: Fix Windows share browsing issues

    Quote Originally Posted by dmizer View Post
    Change “WORKGROUP” in “workgroup = WORKGROUP” to match your Windows workgroup.

    ...add netbios name = computer-name just below "workgroup = WORKGROUP".
    This worked for me as long as Uncomplicated Fire Wall (UFW) is not running.

    When UFW is running, I can see my Widows shares, but cannot browse them. I would rather not poke holes in the firewall. So, as described in this thread "Firewall Blocked for Samba" I edited /etc/default/ufw to include;

    Code:
    # The nf_contrack_netbios_ns has been added
    IPT_MODULES="nf_conntrack_ftp nf_nat_ftp nf_conntrack_irc nf_nat_irc nf_conntrack_netbios_ns"
    I still cannot browse my Windows XP shares. From Ubuntu versions 6 through 9 this was never a problem. All Ubuntu 10 versions seem to have this problem.

    MSI L1300 Netbook running Ubuntu 10.10 Maverick
    Attempting to browse Windows XP workgroup shares.

    Any help appreciated.
    Last edited by John Bennett; February 20th, 2011 at 05:17 PM.

  2. #502
    Join Date
    Apr 2010
    Beans
    134
    Distro
    Kubuntu

    Re: Howto: Fix Windows share browsing issues

    Quote Originally Posted by John Bennett View Post
    This worked for me as long as Uncomplicated Fire Wall (UFW) is not running.

    When UFW is running, I can see my Widows shares, but cannot browse them. I would rather not poke holes in the firewall. So, as described in this thread "Firewall Blocked for Samba" I edited /etc/default/ufw to include;

    Code:
    # The nf_contrack_netbios_ns has been added
    IPT_MODULES="nf_conntrack_ftp nf_nat_ftp nf_conntrack_irc nf_nat_irc nf_conntrack_netbios_ns"
    I still cannot browse my Windows XP shares. From Ubuntu versions 6 through 9 this was never a problem. All Ubuntu 10 versions seem to have this problem.

    MSI L1300 Netbook running Ubuntu 10.10 Maverick
    Attempting to browse Windows XP workgroup shares.

    Any help appreciated.
    I agree with John Bennett. I first started testing out with Ubuntu when 9.04 was out, and this wasn't an issue at all. I was able to browse Windows shares flawlessly, including adding printers via Samba. I'm surprised the Ubuntu team hasn't looked into tightening that configuration for out of the box Windows networking capabilities.

    Also, just wanted to add a piece of information to this very long thread. I just set up set up 3 machines with Linux Mint (an Ubuntu derivative), and this fix works almost flawlessly every time. However, I did notice that experimenting can throw off your configuration, and this may effect all of your Ubuntu machines in the LAN.

    For example, I decided to put wins before lmhosts in the smb.conf file. This knocked out my Samba browsing on every Mint machine that I have running. I simply edited smb.conf back to the way the fix instructs it should be, and restarted the samba service with sudo service smbd restart. After that, I refreshed the network browser on the other machines, and it was working fine.

    To make a long story short, it's definitely possible that one bad config may knock out the whole group of Ubuntu machines. So, always verify you've followed the instructions of the original post to perfection. I've never had it fail on me, except when I do things outside of its suggestions. I've never had to adjust any firewall settings either, just edit smb.conf and nsswitch.conf.

    Hope this sheds light for newcomers!

  3. #503
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Howto: Fix Windows share browsing issues

    Quote Originally Posted by John Bennett View Post
    This worked for me as long as Uncomplicated Fire Wall (UFW) is not running.
    Please read this section carefully:
    Quote Originally Posted by dmizer View Post
    Problem 4:
    Firewalls block samba browsing. If you're sharing files over samba, that probably means you're on a LAN with only indirect (usually via a firewalled gateway/router) access to the Internet. This means that you probably don't need a firewall at all. If you think you DO need a firewall, you should really think about how wise it is to poke holes in it to facilitate samba file sharing.
    Windows file sharing is one of the most common attack vectors, so if you poke holes in your firewall for samba browsing, you're essentially removing any positive effect your firewall has.

    Is there a reason you need a firewall?
    Last edited by dmizer; February 22nd, 2011 at 03:26 AM.

  4. #504
    Join Date
    Mar 2010
    Location
    USA
    Beans
    92
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Howto: Fix Windows share browsing issues

    Hi, I'm having problems with samba sharing...

    Two days ago everything was fine. I could browse shares on my Windows PC gdea73-pc-1 (netshare and www) just fine and edit files. A long time ago I noticed that from a Windows PC I had to enter my linux user/password to view netshare on THIS LOCAL machine (Ubuntu). I have a user account g73net with no password on this local machine, so I used smbpasswd -a g73net to add it to my share. I also created smbusers in /etc/samba and added this:

    gdea73 = "gdea73"
    g73net = "g73net"

    Now, I always get "failed to mount Windows share" when trying to access *any* windows share on the network besides the Netshare on the local PC. I tried deleting smbusers, and i also typed smbpasswd -x g73net. I even deleted user g73net. Still won't work...

    what do I do?

  5. #505
    Join Date
    Mar 2010
    Location
    USA
    Beans
    92
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Howto: Fix Windows share browsing issues

    wow, different problem
    I can access shares via IP address but I can't via machine name. I didn't change anything in my smb.conf and it was working 2 days ago ...

  6. #506
    Join Date
    Mar 2011
    Beans
    3
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Howto: Fix Windows share browsing issues

    Hi all,

    After searching, digging and testing I have no more ideas to try. I explain:

    I'm trying to setup a small local File Server (Ubuntu Server 10.04 and Samba 3.4.7) After looking at the forums about the configurations of Samba and Windows I managed to get all the network running at 99%. The remaining 1% is that the connection to Samba from Windows 7 is performed intermittently.

    XP pcs have no problem accessing, mount drives, read and write to the Samba server. It seemed that Windows 7, after edit various, either. But after a few minutes (sometimes seconds) Windows 7 is no access to the server more, and after a few minutes reconnects.

    The access is done with user authentication and permissions are handled in Ubuntu

    I record somo traffic with Wireshark, but I'm not have enogh level to draw conclusions. If it is necessary I can post too.

    Best Regards!

    Ubuntu Server 4.10 + Samba: 185.0.200.151
    PC Windows 7 185.0.200.56

    smb.conf

    Code:
    [global]
        workgroup = NPG
        server string = SERV-FICHEROS
        netbios name = SERV-FICHEROS
        wins support = no
        dns proxy = no
        name resolve order = lmhosts host wins bcast
        interfaces = 127.0.0.0/8 eth0
    ;    bind interfaces only = yes
        deadtime = 0
    
        printcap name = /dev/null
        load printers = no
        printcap cache time = 0
        show add printer wizard = no
    #### Win7 Support ####
        client ntlmv2 auth = yes    
        client lanman auth = yes
        lanman auth = yes
        ntlm auth = yes
    
    #### Debugging/Accounting ####
        log file = /var/log/samba/log.%m
        max log size = 1000
        syslog = 0
        panic action = /usr/share/samba/panic-action %d
    ####### Authentication #######
        security = user
        encrypt passwords = yes
        passdb backend = tdbsam
        obey pam restrictions = yes
        unix password sync = yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        pam password change = yes
        map to guest = bad user
    
    ############ Misc ############
    #    SO_RCVBUF=8192 SO_SNDBUF=8192
        socket options = TCP_NODELAY
    
    # Maximum number of usershare. 0 (default) means that usershare is disabled.
        usershare max shares = 100
    
    # Allow users who've been granted usershare privileges to create
    # public shares, not just authenticated ones
       usershare allow guests = yes
    
    ############ Shares ############
    [FICHEROS-NPG]
        path = /FICHEROS-NPG
        comment = Servidor Ficheros
        hide unreadable = yes
        read only = no
        browseable = yes
    #    guest ok = yes
    #    create mask = 0775
    #    directory mask = 077
    pc win7 (samba log)

    Code:
      ixd_miguel (185.0.200.56) connect to service FICHEROS-NPG initially as user Manuel (uid=1007, gid=1011) (pid 2180)
    [2011/03/01 11:26:30,  1] smbd/service.c:1063(make_connection_snum)
      ixd_miguel (185.0.200.56) connect to service FICHEROS-NPG initially as user Manuel (uid=1007, gid=1011) (pid 2185)
    [2011/03/01 11:26:42,  0] lib/util_sock.c:539(read_fd_with_timeout)
    [2011/03/01 11:26:42,  0] lib/util_sock.c:1491(get_peer_addr_internal)
      getpeername failed. Error was Transport endpoint is not connected
      read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
    [2011/03/01 11:26:42,  1] smbd/service.c:1240(close_cnum)
      ixd_miguel (185.0.200.56) closed connection to service FICHEROS-NPG
    [2011/03/01 11:29:22,  0] lib/util_sock.c:539(read_fd_with_timeout)
    [2011/03/01 11:29:22,  0] lib/util_sock.c:1491(get_peer_addr_internal)
      getpeername failed. Error was Transport endpoint is not connected
      read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
    [2011/03/01 11:29:22,  1] smbd/service.c:1240(close_cnum)
      ixd_miguel (185.0.200.56) closed connection to service FICHEROS-NPG
    [2011/03/01 11:31:30,  0] lib/util_sock.c:539(read_fd_with_timeout)
    [2011/03/01 11:31:30,  0] lib/util_sock.c:1491(get_peer_addr_internal)
      getpeername failed. Error was Transport endpoint is not connected
      read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
    [2011/03/01 11:31:30,  1] smbd/service.c:1240(close_cnum)
      ixd_miguel (185.0.200.56) closed connection to service FICHEROS-NPG
    [2011/03/01 12:08:35,  0] lib/util_sock.c:539(read_fd_with_timeout)
    [2011/03/01 12:08:35,  0] lib/util_sock.c:1491(get_peer_addr_internal)
      getpeername failed. Error was Transport endpoint is not connected
      read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
    [2011/03/01 12:41:22,  0] lib/util_sock.c:539(read_fd_with_timeout)
    [2011/03/01 12:41:22,  0] lib/util_sock.c:1491(get_peer_addr_internal)
      getpeername failed. Error was Transport endpoint is not connected
      read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
    Last edited by mapsegarra; March 6th, 2011 at 10:06 PM. Reason: New thread created

  7. #507
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Howto: Fix Windows share browsing issues

    Quote Originally Posted by gdea73 View Post
    wow, different problem
    I can access shares via IP address but I can't via machine name. I didn't change anything in my smb.conf and it was working 2 days ago ...
    Just follow the howto in the first page of this thread and you should be fine.

    Quote Originally Posted by mapsegarra View Post
    I'm trying to setup a small local File Server (Ubuntu Server 10.04 and Samba 3.4.7) After looking at the forums about the configurations of Samba and Windows I managed to get all the network running at 99%. The remaining 1% is that the connection to Samba from Windows 7 is performed intermittently.
    Your problem is the opposite of what this thread tries to solve. You'll be better off posting a separate thread. You can also have a look at the 1st link in my sig.

  8. #508
    Join Date
    Mar 2011
    Beans
    1

    Re: Howto: Fix Windows share browsing issues

    Hi Dmizer!!,
    great tutorial thanks, but unfortunately didn't work for me.
    Let me explain what I did, first of all, Samba was working perfectly with ubuntu Hardy-Heron version, now I updated to 10.04 and from windows doesn't "see" the linux machine. I can access through \\IPadress\share_folder (this means samba works fine).
    But I can't browse through windows explorer. I've tried all the options that you recommend but no one works.
    From ubuntu I get the error message "Unable to mount location: Failed to retrieve share list from server" Iread that it's a firewall problem, but this doesn't bother to me.
    I attach my smb.conf file.

    Thanks in advance
    P.D. Sorry for my english

    Regards!!
    Kyke
    Attached Files Attached Files

  9. #509
    Join Date
    Aug 2007
    Location
    Scotland
    Beans
    168
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Howto: Fix Windows share browsing issues

    Hi Dmizer,

    Thanks again for the 'permanent share mount' tutorial - working perfectly.

    Everything else was working perfectly until yesterday afternoon when I booted up win7 to use IE to try and change privacy settings in (of all things) facebook. (Firefox seemed unable to open the privacy tab) IE did give me access, but little joy, but that's all by the by...

    When I returned to Ubuntu (mint 9), I could no longer browse my LAN with nautilus - I get the windows network icon, but clicking on it gives the 'Unable to mount location - Failed to retrieve share list from server' error. I thought (sudo) restart smbd - no effect, restart nmbd - no effect. samba "samba is not installed" - WHAT?

    Re-installed samba (samba4) restart samba gives a bunch of errors and I remembered 4 doing that before, so removed 4 and left 3 in place.

    I've tried all your suggested smb.conf edits with no joy.

    When I try and install winbind it hangs at 'starting winbindd' apparently forever - bombing out leaves stuff locked and requires a reboot and dpkg configure. Same with either cli or synaptic. I have removed it at present, but will attempt a new install...

    Samba is working fine except through nautilus (I can see (and open) shares via firefox, either by ip address or netbios name). I've gone back to win7 and increased the stack as suggested, all to no avail.

    Samba log
    Code:
    [Tue Feb 22 15:59:54 2011 GMT, 0 smbd/service_task.c:36:task_server_terminate()]
    task_server_terminate: [NT_STATUS_CANT_ACCESS_DOMAIN_INFO]
    [Wed Feb 23 14:44:39 2011 GMT, 0 smbd/server.c:285:binary_smbd_main()]
    samba version 4.0.0alpha9-GIT-9733816 started.
    Copyright Andrew Tridgell and the Samba Team 1992-2009
    [Wed Feb 23 14:44:39 2011 GMT, 0 smbd/pidfile.c:94:pidfile_create()]
    ERROR: samba is already running. File /var/run/samba.pid exists and process id 1350 is running.
    [Wed Feb 23 17:17:42 2011 GMT, 0 smbd/server.c:117:sig_term()]
    Exiting pid 1360 on SIGTERM
    [Wed Feb 23 17:17:42 2011 GMT, 0 smbd/server.c:117:sig_term()]
    Exiting pid 1368 on SIGTERM
    [Wed Feb 23 17:17:42 2011 GMT, 0 smbd/server.c:117:sig_term()]
    Exiting pid 1362 on SIGTERM
    [Wed Feb 23 17:17:42 2011 GMT, 0 smbd/server.c:112:sig_term()]
    SIGTERM: killing children
    [Wed Feb 23 17:17:42 2011 GMT, 0 smbd/server.c:117:sig_term()]
    Exiting pid 1350 on SIGTERM
    [Thu Mar 24 17:15:13 2011 GMT, 0 smbd/server.c:285:binary_smbd_main()]
    samba version 4.0.0alpha9-GIT-9733816 started.
    Copyright Andrew Tridgell and the Samba Team 1992-2009
    [Thu Mar 24 17:15:13 2011 GMT, 0 smbd/server.c:366:binary_smbd_main()]
    samba: using 'standard' process model
    [Thu Mar 24 17:15:13 2011 GMT, 0 smbd/service_task.c:36:task_server_terminate()]
    task_server_terminate: [ldap_server: no LDAP server required in standalone configuration]
    [Thu Mar 24 17:15:13 2011 GMT, 0 smbd/service_task.c:36:task_server_terminate()]
    task_server_terminate: [kdc: no KDC required in standalone configuration]
    [Thu Mar 24 17:15:13 2011 GMT, 0 smbd/service_task.c:36:task_server_terminate()]
    task_server_terminate: [cldap_server: no CLDAP server required in standalone configuration]
    [Thu Mar 24 17:15:13 2011 GMT, 0 smbd/service_task.c:36:task_server_terminate()]
    task_server_terminate: [dreplsrv: no DSDB replication required in standalone configuration]
    [Thu Mar 24 17:15:13 2011 GMT, 0 smbd/service_stream.c:332:stream_setup_socket()]
    Failed to listen on 0.0.0.0:445 - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED
    [Thu Mar 24 17:15:13 2011 GMT, 0 smbd/service_task.c:36:task_server_terminate()]
    task_server_terminate: [Failed to startup smb server task]
    [Thu Mar 24 17:15:13 2011 GMT, 0 smbd/service_task.c:36:task_server_terminate()]
    task_server_terminate: [kccsrv: no KCC required in standalone configuration]
    [Thu Mar 24 17:15:13 2011 GMT, 0 smbd/service_task.c:36:task_server_terminate()]
    task_server_terminate: [NT_STATUS_CANT_ACCESS_DOMAIN_INFO]
    [Thu Mar 24 17:17:25 2011 GMT, 0 smbd/server.c:117:sig_term()]
    Exiting pid 2383 on SIGTERM
    [Thu Mar 24 17:17:25 2011 GMT, 0 smbd/server.c:117:sig_term()]
    Exiting pid 2376 on SIGTERM
    [Thu Mar 24 17:17:25 2011 GMT, 0 smbd/server.c:117:sig_term()]
    Exiting pid 2377 on SIGTERM
    [Thu Mar 24 17:17:25 2011 GMT, 0 smbd/server.c:117:sig_term()]
    Exiting pid 2375 on SIGTERM
    [Thu Mar 24 17:17:25 2011 GMT, 0 smbd/server.c:112:sig_term()]
    SIGTERM: killing children
    [Thu Mar 24 17:17:25 2011 GMT, 0 smbd/server.c:117:sig_term()]
    Exiting pid 2372 on SIGTERM
    ed@ed-asus:/var/log/samba$
    Any ideas?

    Regards
    ed
    http://tipiglen.co.uk/loveandpeace3.gif
    Asus 1005HA CPU:N280 HDD:160G RAM:2G Ubuntu 10.04 and/or Mint 9

    Also have decrepit Fujitsu-Siemens Amilo D 1845 [now half-bricked by upgrade ]
    知 者 不 言。言 者 不 知。

  10. #510
    Join Date
    Aug 2007
    Location
    Scotland
    Beans
    168
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Howto: Fix Windows share browsing issues

    Hi again,

    Winbind installed without problems this time.

    Nautilus now shows icon for windows network and icons for ALL my own shares (on this box), but clicking on any of them still gets the same old error. GAH! log.winbindd-idmap:
    Code:
    [2011/03/25 15:23:50,  1] winbindd/idmap.c:438(idmap_init_passdb_domain)
      Could not init passdb idmap domain
    [2011/03/25 15:23:50,  1] winbindd/idmap_tdb.c:214(idmap_tdb_load_ranges)
      idmap uid missing
    [2011/03/25 15:23:50,  0] winbindd/idmap_tdb.c:287(idmap_tdb_open_db)
      Upgrade of IDMAP_VERSION from -1 to 2 is not possible with incomplete configuration
    [2011/03/25 15:23:50,  1] winbindd/idmap.c:321(idmap_init_domain)
      idmap initialization returned NT_STATUS_UNSUCCESSFUL
    [2011/03/25 15:25:36,  0] winbindd/idmap.c:201(smb_register_idmap_alloc)
      idmap_alloc module tdb already registered!
    [2011/03/25 15:25:36,  0] winbindd/idmap.c:149(smb_register_idmap)
      Idmap module passdb already registered!
    [2011/03/25 15:25:36,  0] winbindd/idmap.c:149(smb_register_idmap)
      Idmap module nss already registered!
    [2011/03/25 15:25:36,  1] winbindd/idmap_tdb.c:214(idmap_tdb_load_ranges)
      idmap uid missing
    [2011/03/25 15:25:36,  0] winbindd/idmap_tdb.c:287(idmap_tdb_open_db)
      Upgrade of IDMAP_VERSION from -1 to 2 is not possible with incomplete configuration
    [2011/03/25 15:25:36,  1] winbindd/idmap.c:321(idmap_init_domain)
      idmap initialization returned NT_STATUS_UNSUCCESSFUL
    Asus 1005HA CPU:N280 HDD:160G RAM:2G Ubuntu 10.04 and/or Mint 9

    Also have decrepit Fujitsu-Siemens Amilo D 1845 [now half-bricked by upgrade ]
    知 者 不 言。言 者 不 知。

Page 51 of 61 FirstFirst ... 414950515253 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •