upeace

Q: Can't connect via SMB

Prior to installing Lion, I would connect to our shared drives at work via SMB.  Today, after installing Lion, I can't connect to my shared drives.  The one SMB connection that works is to an FTP server.  I connect via SMB to map the drive in my Finder rather than using an FTP program.  This still works fine.

 

However, I can't connect to the shared drive for file sharing.  In the Connect to Server box, I have "smb://PathToFiles" .  Is smb://  the correct prefix to use now that Lion is funky with SMB support?

 

I'm sorry...I really don't know much about SMB connections, what kind of server it is that I'm trying to connect to, or much else.  I know we run Windows Exchange, but I'm not sure if that's the server that hosts these shared drives...I just need to connect to get back to work.  Any help would be AWESOME.

Posted on Jul 21, 2011 1:55 PM

Close

Q: Can't connect via SMB

  • All replies
  • Helpful answers

first Previous Page 4 of 9 last Next
  • by CJlomax,

    CJlomax CJlomax Aug 12, 2011 7:10 PM in response to Skazzy
    Level 1 (0 points)
    Aug 12, 2011 7:10 PM in response to Skazzy

    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

  • by hotrodmacman,

    hotrodmacman hotrodmacman Aug 13, 2011 10:18 AM in response to jan78
    Level 1 (0 points)
    Aug 13, 2011 10:18 AM in response to jan78

    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>

  • by Skazzy,

    Skazzy Skazzy Aug 14, 2011 6:32 AM in response to hotrodmacman
    Level 1 (45 points)
    Aug 14, 2011 6:32 AM in response to hotrodmacman

    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

  • by hotrodmacman,

    hotrodmacman hotrodmacman Aug 14, 2011 7:26 AM in response to Skazzy
    Level 1 (0 points)
    Aug 14, 2011 7:26 AM in response to Skazzy

    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.
  • by Skazzy,

    Skazzy Skazzy Aug 14, 2011 8:22 AM in response to hotrodmacman
    Level 1 (45 points)
    Aug 14, 2011 8:22 AM in response to hotrodmacman

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

     

    wait on my beer?

  • by Skazzy,

    Skazzy Skazzy Aug 15, 2011 12:43 AM in response to CJlomax
    Level 1 (45 points)
    Aug 15, 2011 12:43 AM in response to CJlomax

    @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!

  • by CJlomax,

    CJlomax CJlomax Aug 15, 2011 5:39 PM in response to Skazzy
    Level 1 (0 points)
    Aug 15, 2011 5:39 PM in response to Skazzy

    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

  • by Skazzy,

    Skazzy Skazzy Aug 16, 2011 12:38 AM in response to CJlomax
    Level 1 (45 points)
    Aug 16, 2011 12:38 AM in response to CJlomax

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

  • by BDAqua,

    BDAqua BDAqua Aug 16, 2011 12:59 AM in response to Skazzy
    Level 10 (123,890 points)
    Aug 16, 2011 12:59 AM in response to Skazzy

    Uhhh, does it affect iPhones?

  • by Ryan Supeene,

    Ryan Supeene Ryan Supeene Aug 16, 2011 5:12 PM in response to Skazzy
    Level 1 (25 points)
    Aug 16, 2011 5:12 PM in response to Skazzy

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

     

     

    UPDATE: The ANSWER IS NO!!!

  • by Skazzy,

    Skazzy Skazzy Aug 16, 2011 11:38 PM in response to Ryan Supeene
    Level 1 (45 points)
    Aug 16, 2011 11:38 PM in response to Ryan Supeene

    Nope...and nope.

     

     

    ARRRHHH!!!

  • by CJlomax,

    CJlomax CJlomax Aug 19, 2011 8:23 PM in response to Skazzy
    Level 1 (0 points)
    Aug 19, 2011 8:23 PM in response to Skazzy

    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

  • by CJlomax,

    CJlomax CJlomax Aug 19, 2011 8:38 PM in response to CJlomax
    Level 1 (0 points)
    Aug 19, 2011 8:38 PM in response to CJlomax

    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

  • by sysmgr,

    sysmgr sysmgr Aug 23, 2011 6:59 AM in response to upeace
    Level 1 (0 points)
    Aug 23, 2011 6:59 AM in response to upeace

    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

  • by Skazzy,

    Skazzy Skazzy Aug 23, 2011 7:44 AM in response to sysmgr
    Level 1 (45 points)
    Aug 23, 2011 7:44 AM in response to sysmgr

    This doesn't work for me.

first Previous Page 4 of 9 last Next