Delarado

Q: SMB Shares will not work. Ever.

Guys,


Ive been trying for a while now and I cannot get my MBA to connect to ANY SMB Share through the GUI.


I can get it to work through the terminal using something like:


mount_smbfs //'COMPUTERNAME-OR-DOMAIN-NAME;USERNAME':PASSWORD@x.x.x.x/Shared SMB_Mount


This successfully mounts the windows based SMB share called "share" and shows in my finder. Note the single quotes. It WILL NOT work without these, although I can't find the usage of them listed in any documentation for the mount_smbfs command. In the case above I'm using my own, non domain MBA with a local login to connect to a windows 2008 server that is a member of a windows 2003 domain controller domain; Although I am using a local administrator account to authenticate with said 2008 server that contains the SMB share.


However, If i try and mount through the GUI using CMD+K, it just will not work. I have tried:


smb://'COMPUTERNAME;USERNAME':PASSWORD@x.x.x.x/Shared


Brings up a window saying enter your username and password for the server. It already has the correct computername\username filled in in the username box. I put the password in, hit ok and either the box just shakes, or it says:


"There was a problem connecting to x.x.x.x, you do not have permission to access this server"



smb://COMPUTERNAME;USERNAME:PASSWORD@x.x.x.x/Shared (As above without quotes)


"There was a problem connecting to x.x.x.x, you do not have permission to access this server"


smb://x.x.x.x/Shared


Brings up a window saying enter your username and password for the server. I put the username and password in, hit ok and either the box just shakes, or it says:


"There was a problem connecting to x.x.x.x, you do not have permission to access this server"


smb://x.x.x.x/


Brings up a list of available shares on the server. I select one. Brings up a window saying enter your username and password for the server. I put the username and password in, hit ok and either the box just shakes, or it says:


"There was a problem connecting to x.x.x.x, you do not have permission to access this server"




Is there a bug with OSX and SMB shares? I Cannot get it to open ANY SMB share on any machine. I've tried windows 7, windows 2003, windows 2008 and windows XP. I Always get the same result. "You do not have permission to access this server" regardless of what authetication credentials I put in, whether they are correct or purposely incorrect! I've tried using domain accounts, local accounts, specifying domains, computer names, forward slashes, backslashes, escaping backslashes with forwardslashes and vice versa; I just cant get it to work. Ever.


The MBA even sometimes detects SMB shares in the finder, but when I click on them it just will not work. No matter what I put in the "connect as" box. I have the same issue. You do not have permission.


Ive been searching for some time on this and found all sorts of posts about various problems with SMB sharing, but none that seem to directly relate to my issue. Most of it seems to be about accessing SMB shares on a mac server thats part of a W2k8 domain, or other, slightly different issues. I've found nothing yet that seems to just be someone having issue with SMB shares not working full stop, across any operating systems.


One thing I haven't tried is mapping an SMB share to my ubuntu VM, this may be worth a try for interests sake - but I still want to be able to open an SMB share through the finder like I should be able to!


Has anyone else experienced this incredibly frustrating issue? Excuse my lack of diagnosis on this as well; I've been a network/sys administrator for ten years now but have only owned my MBA for a few weeks and my osx knowledge is extremely shoddy. I haven't checked any logs because I don't know where they are :)

 

There are some workarounds for SMB filesharing problems in Lion listed here: www.macwindows.com/lion-filesharing.html


There were a number of approached that worked for some people. One is to set "streams=no" in the nsmb.conf file.

 

Streams = no did not work.

 

I am still able to map using the CLI but not the gui. It just says you do not have permission to access this server still.


 

I'd love it if someone here can point me in the right direction, this is incredibly frustrating.

MacBook Air, OS X Mountain Lion (10.8.2)

Posted on Jan 4, 2013 4:42 AM

Close

Q: SMB Shares will not work. Ever.

  • All replies
  • Helpful answers

  • by Delarado,

    Delarado Delarado Jan 8, 2013 8:12 AM in response to Delarado
    Level 1 (0 points)
    Jan 8, 2013 8:12 AM in response to Delarado

    anybody having this issue?

  • by paulbeard,Helpful

    paulbeard paulbeard Jan 8, 2013 7:10 PM in response to Delarado
    Level 1 (5 points)
    Jan 8, 2013 7:10 PM in response to Delarado

    I found this while looking into a different issue but what you're trying to do should be easy.

     

    smbutil view //user@server should ask for the authentication and then show you the available shares.

     

    Logs are in /var/log as on most (all?) UNIX variants.

     

    Can you access the shares any other way?

  • by RodneyW,Helpful

    RodneyW RodneyW Jan 9, 2013 4:28 AM in response to Delarado
    Level 4 (3,030 points)
    Jan 9, 2013 4:28 AM in response to Delarado

    This doesn't solve your issue - but I have no problem connecting to Win 7 SMB shares on my MBP from Finder.

     

    It seems to me that you have an authentication issue of some kind - possibly a firewall setting on your Mac (? long shot).

  • by Delarado,

    Delarado Delarado Jan 21, 2013 4:10 AM in response to Delarado
    Level 1 (0 points)
    Jan 21, 2013 4:10 AM in response to Delarado

    Thanks for the replies guys. I do not have a firewall enabled.  I have some developments (Slight)

     

    I have an SMB share on a windows machine.  If I CMD+K and just do SMB://IP.Address then it ask me for credentials.

     

    If I put in completely wrong credentials, the box just shakes when I hit OK.

     

    If I put in correct credentials, it shows me a list of available shares (to that particular user) and then when I click the one I want and hit OK I get a popup "You do not have permission to access this server"

     

    So its obviously taking the login in some way or another, just failing at another part.

     

    I've looked in /var/log and the only log I can see that has anything relevant is system.log (Admittedly I didnt check them all as there are a lot)

     

    I get the below message after a failed attempt to access an SMB share:

     

    Jan 21 12:04:51 Carls-MacBook-Air.local NetAuthSysAgent[1042]: NAHSelectionAcquireCredential The operation couldn’t be completed. (com.apple.NetworkAuthenticationHelper error -1765328228 - acquire_kerberos failed carlnewton@EUDC1PCUBAC: -1765328228 - unable to reach any KDC in realm EUDC1PCUBAC)

     

    EUDC1PCUBAC is the name of the computer that I am trying to access the SMB share on.  carlnewton is the name of the user account on that machine that I am trying to use to access the share.

     

    I'm going to start googling this error now but if anyone else has seen it before then input would be appreciated!

     

    Thanks

  • by Delarado,

    Delarado Delarado Jan 21, 2013 4:11 AM in response to Delarado
    Level 1 (0 points)
    Jan 21, 2013 4:11 AM in response to Delarado

    Paul, accessing SMB shares works if I do it through the command line.

     

    Just doing it through the GUI wont work; ever! Even to the same share using the same user account. No matter what I input. Its all described in the original post.

     

    Thanks

  • by Delarado,

    Delarado Delarado May 21, 2013 5:01 AM in response to Delarado
    Level 1 (0 points)
    May 21, 2013 5:01 AM in response to Delarado

    Interestingly, I've just found that I also cannot access FTP Shares.

     

    If I click on an FTP Link (E.g ftp://ftp.company.com) and then put in a username and password to authenticate, I get the same "You do not have permission to access this server" message.

     

    If i use the terminal FTP with the exact same credentials I can access it fine.

  • by etresoft,Solvedanswer

    etresoft etresoft May 21, 2013 5:07 AM in response to Delarado
    Level 7 (29,101 points)
    May 21, 2013 5:07 AM in response to Delarado

    It sounds like your local permissions are all messed up. Try running Repair Permissions in Disk Utiltiy.

  • by Delarado,

    Delarado Delarado May 21, 2013 5:33 AM in response to Delarado
    Level 1 (0 points)
    May 21, 2013 5:33 AM in response to Delarado

    You legend! Thank you so much.  Seems to be working ok now, I have sucessfully accessed two SMB shares I could not access before using the GUI, and the FTP now works great too.

     

    Such a simple fix for a problem I've had forever!

     

    Thanks again!!!!

  • by tmack8001,

    tmack8001 tmack8001 Jul 22, 2015 11:16 PM in response to etresoft
    Level 1 (0 points)
    Jul 22, 2015 11:16 PM in response to etresoft

    been searching for a couple days for a fix to this myself... this was so annoying trying to find the answer to, but I found it was so easy to fix.

     

    Thanks for this post and the answer to the issue!