Page 14 of 61 FirstFirst ... 4121314151624 ... LastLast
Results 131 to 140 of 610

Thread: Howto: Fix Windows share browsing issues

  1. #131
    Join Date
    Oct 2008
    Location
    Denver, CO
    Beans
    29
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Howto: Fix Windows share browsing issues

    Quote Originally Posted by dmizer View Post
    Since everything works perfectly from all machines except the Vista virtual machine, I suggest taking a very close look at your virtual machine's networking, firewall, and file sharing configurations.

    I recall once that someone had trouble browsing samba from their Windows virtual machine. The fix was related to MTU. You should double check to make sure the MTU matches across the virtual network.
    It's not just the VM -- it's also the new laptop if I boot into Vista.
    - Justin

  2. #132
    Join Date
    Aug 2009
    Beans
    2

    Re: Howto: Fix Windows share browsing issues

    Thanks dmizer for helping me fix this problem. It went away when I turned ufw (using gufw) to allow incoming connections.

    However when I turned ufw back to block incoming connections and tried the following I could not see any computers on the network.
    Code:
    sudo ufw allow proto udp to any port 137 from 192.168.29.0/24
    sudo ufw allow proto udp to any port 138 from 192.168.29.0/24
    sudo ufw allow proto tcp to any port 139 from 192.168.29.0/24
    sudo ufw allow proto tcp to any port 445 from 192.168.29.0/24
    I checked /var/log/syslog and found out that the ports 137 138 139 445 were source ports not destination ports so I changed it around using the GUI. I wonder if anyone else has this problem.

    My result for the command

    Code:
    sudo ufw status numbered
    Status: active

    To Action From
    -- ------ ----
    [ 1] Anywhere ALLOW 192.168.1.0/24 139/tcp
    [ 2] Anywhere ALLOW 192.168.1.0/24 445/tcp
    [ 3] Anywhere ALLOW 192.168.1.0/24 137/udp
    [ 4] Anywhere ALLOW 192.168.1.0/24 138/udp

    Thanks again!

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

    Re: Howto: Fix Windows share browsing issues

    Thank you for the tip. I've updated the howto.

  4. #134
    Join Date
    Aug 2009
    Beans
    2

    Re: Howto: Fix Windows share browsing issues

    Actually this is what I have to do for it to work on ubuntu-desktop/ufw
    Code:
    sudo ufw allow proto udp from 192.168.1.0/24 port 137 to any
    sudo ufw allow proto udp from 192.168.1.0/24 port 138 to any
    sudo ufw allow proto tcp from 192.168.1.0/24 port 139 to any
    sudo ufw allow proto tcp from 192.168.1.0/24 port 445 to any
    This is to access shares on WinXP/with-firewall and Samba/Ubuntu-server/no-ufw. I will try enabling ufw on Ubuntu-server and see which settings work.

    Edit (20-Aug09): the problem was that I did not add the netbios_ns line
    (see http://ubuntuforums.org/showthread.php?t=806000)

    This is my understanding of the problem:

    Client starts a connection from a random high number port (1024-65535) to one of the above ports (137,138/udp 139,445/tcp) on the remote computer. When the remote computer replies to the high port it was blocked by ufw which is set to deny incoming connections.

    My original solution (above) allowed connections to any port on the client from the specified ports on the remote computer (insecure).

    The netbios_ns solution tracks which connections were initiated by the client and allows the remote computer to respond to ports that would otherwise be blocked. In other words, the remote computer is allowed to reply on the same high port within a given timeout.
    Last edited by patsingh; August 25th, 2009 at 08:17 AM.

  5. #135
    Join Date
    Jun 2006
    Beans
    12

    Re: Howto: Fix Windows share browsing issues

    My home/office setup is as follows:

    Desktop running ubuntu 9.04
    Laptop running Windows XP Home SP3
    Laptop running Mac OS X 10.5

    All are on the same local network (the desktop via ethernet, the laptops via wireless).

    I wasn't making much progress getting them to talk to each other until I went through the changes in this post. Now file sharing is mostly fixed. I can see and access the shared folders on both my Mac and Ubuntu. However, when trying from Ubuntu to my Windows laptop's, I can see the computer in Workgroup but when I try to open it, it keeps prompting me for a username and password. Why does this happen? What I'm really trying to do is connect as a guest and just access the shared public folder on my Windows laptop. Is there any way to change this?

    There are a couple more computers on the way this week as I'm adding a couple more Ubuntu desktops plus another Mac laptops. Was hoping to iron out these quirks so they don't get out of hand.

    As a side note - it was very easy to share the printer connected to my Ubuntu desktop (from the Windows laptop - haven't got round to adding it to my Mac).

    Thanks.
    Last edited by bkb; August 25th, 2009 at 09:20 AM.

  6. #136
    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 bkb View Post
    I wasn't making much progress getting them to talk to each other until I went through the changes in this post. Now file sharing is mostly fixed. I can see and access the shared folders on both my Mac and Ubuntu. However, when trying from Ubuntu to my Windows laptop's, I can see the computer in Workgroup but when I try to open it, it keeps prompting me for a username and password. Why does this happen? What I'm really trying to do is connect as a guest and just access the shared public folder on my Windows laptop. Is there any way to change this?
    Do you have both a password protected share as well as a public share on the Windows machine? If so, can you connect to the guest share if you cancel the password request?

  7. #137
    Join Date
    Jun 2006
    Beans
    12

    Re: Howto: Fix Windows share browsing issues

    Quote Originally Posted by dmizer View Post
    Do you have both a password protected share as well as a public share on the Windows machine? If so, can you connect to the guest share if you cancel the password request?
    Thanks for your reply. I was trying this but I would get another dialog box that said the password dialog was canceled. However, it suddenly started working again today. I'm still finding it pretty erratic overall.

  8. #138
    Join Date
    Sep 2009
    Beans
    1

    Smile Re: Howto: Fix Windows share browsing issues

    Dear dmizer,

    Many thanks for your tutorial. After addressing "Problems 1 and 2" I finally was able to mount on my Ubuntu computer a folder from my XP computer. I had so much hard times trying again and again. Your tutorials are well written. There are still so many things I don't understand but it's good when things work!

    Thank you!

    clamar8

  9. #139
    Join Date
    Aug 2009
    Beans
    1

    Re: Howto: Fix Windows share browsing issues

    I'm 100% new to the Linux world - had some experience years ago in the non-GUI Xenix system,but that was long ago, far away and long-forgotten, mostly.

    I've been using Ubuntu for just a little over a week, and this particular problem was the most vexing so far. The Windows '98 laptop I have, and my Win XP SP3 system both found the Linux machine, could read from it, share the printer, etc. The Linux box, however, could only see that there is a network here. It seemed to be trying to find my other systems via DNS into the outside world, returning some really strange ip addresses, not the 192.168.*.* I expected. Netbios changes did nothing for this.

    What fixed it for me was doing all the main steps in the first few posts, then finally finding a suggestion to install smbfs. After installing smbfs, everything works perfectly. I can read/write files to and from Linux and both versions of Windows.

    Now on to bigger and better things, I guess.

    Thanks to all for the helps and suggestions.

  10. #140
    Join Date
    Nov 2007
    Location
    Houston/LA/Albuquerque
    Beans
    58
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Howto: Fix Windows share browsing issues

    Hmmmmmmm......your tips wiped out my entire network.

    I don't know what happened but after following your steps, I didn't even have a workgroup anymore. May have been the winbind thing, I don't know. In any event, none of your advice worked for me. I see it helped others though and thats good.

    Your wins dns advice took down my internet. I changed the nsswitch.conf back to original and the internet came back, but now my SMB network is totally hosed.

    I appreciate you trying to help, but I'm a bit 'miffed at 'ya right now. I had to do a re-install.

    Thanks anyway.
    Last edited by Tankerdog2002; September 11th, 2009 at 11:01 PM. Reason: Just toned it down some.

Page 14 of 61 FirstFirst ... 4121314151624 ... 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
  •