You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Reply
132 replies

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.

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

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

Can't connect via SMB

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.