1 2 3 4 5 6 Previous Next 131 Replies Latest reply: Mar 19, 2013 8:01 PM by ADT19104 Go to original post
  • 45. Re: Can't connect via SMB
    CJlomax Level 1 Level 1 (0 points)

    I have read this whole thread looking for an answer. There are some good ideas out there so keep it up.  My problem arose with trying to get access to my shared  folders from my Windows server.

     

    When I installed Snow Leopard my shares to my windows server were working correctly, however after upgrading to Lion things did break.  Looking around I finally figured out that something was wrong with the name resolution for my windows server on the Mac. My windows server  would appear in the finder shared area but would never connect. Thinking it was something in the cache, I tried everything to flush, rebuild or clear it. That did not work, so taking some things I learned from building samba from scratch I thought there had to be a simple solution to this issue and I proceeded to add the hostname and ip of my windows server to my Lion hosts file. Now I can access all my shares. It is slower than usual and this my be because I am using a wireless connection,  but it does work. YMMV

     

    The only other thing I confirmed was to make sure on the Mac under System Preferences, Networking, Advanced that the WINS workgroup was equivalent to my existing windows workgroup name as setup on the Windows server.

     

    Hope this helps,

     

    Cheers

     

    CJLomax

  • 46. Re: Can't connect via SMB
    hotrodmacman Level 1 Level 1 (0 points)

    Editing /etc/avahi/services/samba.service worked for me!

     

    In the following XML, change the port from 139 to 445.  Even fixed a SSO problem I was having with snow!

     

    <service-group>

     

     

      <name replace-wildcards="yes">%h</name>

     

     

      <service>

        <type>_smb._tcp</type>

        <port>139</port>

      </service>

     

     

    </service-group>

  • 47. Re: Can't connect via SMB
    Skazzy Level 1 Level 1 (45 points)

    hotrodmacman..can you PLEASE help me and tell me where I type these commands??  Just open terminal and type.....I'm not super terminal literate but I need a little guidance here..how to I do this?

     

    thanks

  • 48. Re: Can't connect via SMB
    hotrodmacman Level 1 Level 1 (0 points)

    Skazzy,

     

    In my case, the SMB share I am accessing is hosted by a Linux box.  The changes must be made on the server hosting the share you wish to access.  Here are the steps I took:

     

    1. Using terminal, SSH into the Linux box.
    2. Type (without the quotes): "sudo vi /etc/avahi/services/samba.service"
    3. Arrow down until you get to the section of XML included in my post
    4. Press the letter i to enter insert mode
    5. Change <port>139</port> to <port>445</port>
    6. Press Esc to return to command mode
    7. Type :wq to write your changes and quit.
    8. Restart the avahi service using whatever method your Linux distro supports
    9. Exit the SSH session
    10. Mount your SMB share in Finder as before.
    11. Have a beer.
  • 49. Re: Can't connect via SMB
    Skazzy Level 1 Level 1 (45 points)

    Many thanks for your reply my friend...but what do we do if the server is a windows 2003 server?

     

    wait on my beer?

  • 50. Re: Can't connect via SMB
    Skazzy Level 1 Level 1 (45 points)

    @CJlomax:

     

    "...add the hostname and ip of my windows server to my Lion hosts file."

     

    How do you do this?  Can you walk me through it?  Thanks!

  • 51. Re: Can't connect via SMB
    CJlomax Level 1 Level 1 (0 points)

    Open terminal

    sudo -s vi /etc/host

    arrow down to the 127.0.0.1 line

    use shift a to append to that line

    hit return

    type in your ip and hostname for the windows box (use tab not spaces)

    hit escape and type wq! to save and exit.

    ping the name you entered with the ip in the hosts file to check connectivity.

     

     

    A quick update .. the smb is still broken ...also between to MacPro's I have to stop and start filesharing before they register.

     

    Bummer! 

     

    CJlomax

  • 52. Re: Can't connect via SMB
    Skazzy Level 1 Level 1 (45 points)

    Ah!!!  Seriously...is Apple aware of this???

  • 53. Re: Can't connect via SMB
    BDAqua Level 10 Level 10 (116,475 points)

    Uhhh, does it affect iPhones?

  • 54. Re: Can't connect via SMB
    Ryan Supeene Level 1 Level 1 (25 points)

    Did 10.7.1 fix this issue??? I am updateing now

     

     

    UPDATE: The ANSWER IS NO!!!

  • 55. Re: Can't connect via SMB
    Skazzy Level 1 Level 1 (45 points)

    Nope...and nope.

     

     

    ARRRHHH!!!

  • 56. Re: Can't connect via SMB
    CJlomax Level 1 Level 1 (0 points)

    Try using cmd+k then enter smb://username:password@server ... username=username assigned for the share password is your share users password and servername is just as it states. It's a hit or miss YMMV but when it works it works well. It still needs to be fixed properly.

     

    Cheers

     

    CJlomax

  • 57. Re: Can't connect via SMB
    CJlomax Level 1 Level 1 (0 points)

    For the adventurous you could try this:

     

    http://www.johnlarge.co.uk/2011/07/19/osx-lion-samba-smb-shares-broken-xbmc-not- working/

     

     

    Cheers,

     

    CJlomax

  • 58. Re: Can't connect via SMB
    sysmgr Level 1 Level 1 (0 points)

    If you connect via the command-K method, or via the command line 'mount' commands, the shares seem to work correctly when viewed on the command line...

     

    Seems to suggest this is more a bug with Finder than with the samba client... Well, in my case anyway...

     

    So if you are comfy usig the command line, you can mount the shares and then access them there easily

     

    Best of luck

  • 59. Re: Can't connect via SMB
    Skazzy Level 1 Level 1 (45 points)

    This doesn't work for me.

1 2 3 4 5 6 Previous Next