SMB *Connection Failed* Before Prompt to Enter Credentials
I am having a problem connecting to Windows shares via SMB on my MBP. It works fine from all accounts on the MBP - network accounts (it's bound to AD) and local accounts, except for the primary local user account I use. I do not have the firewall turned on. It worked up until about a month ago, though I used to get some message from the system wanting Keychain Access every time I tried to connect, and I had to say "no" otherwise it would give me a connection failed error (I never got/get this message from other accounts on the machine). Now I don't get this message asking me for Keychain Access from my primary account. I wish I could remember what the message was, as I suspect it may have something to do with this issue, but I can't.
Anyway, I've tried the following:
smb://domain;username@winserver01/share
smb://winserver01/share
And then get the following:
Connecting to Server
Connecting to smb://winserver01/share
*Connection Failed*
You do not have permission to access the server "winserver01".
When I try without domain/username in the Server Address field I don't even get prompted to put them in. If I put in smb://winserver01 I get prompted to mount a volume, but then get the permissions error before getting prompted to enter in credentials.
I've tried repair permissions on my Mac. I've tried Keychain First Aid. I've verified the disk on my Mac.
I found that running the following via the command line worked:
mkdir /smb
mkdir /smb/public
mount -t smbfs //username:password@winserver01/share
...that is, it worked once, until I unmounted the drive via the Finder. Now when I try to mount the share using the same command I get mount_smbfs: mount error: /smb/public: Permission denied.
Permissions on /smb/public/ are:
drwxr-xr-x 2 username admin
Note that the local user account I'm using "username" is a member of the local admin group.
I tried creating a subdirectory, /smb/public/mountpoint/, and another directory /smb/public2/, but I get the same Permission denied message on both of these.
I also tried another server/share I've been having problems accessing but get the same errors.
I found that if I include my password in the Server Address field in the Finder's Connect to Server dialog I can successfully mount the share, unmount the share and mount the share again. I tried it on the other share I was having an issue with too and it worked as well. It looks like:
smb://domain;username:password@winserver01/share
smb://domain;username:password@winserver02/path_to/share
It seems like something somewhere is corrupt. Any ideas?
It seems that I've a similar issue.
I can browse a samba(3.2.5) share with smbclient without any problems.
But with the Finder's Connect to Server dialog it doesn't work anymore.
I tried the same with another samba server (3.0.x) and it works ?!?
The problems exists only with the newer one and I think since the last
mac os security update.
When I use Finder's dialog I got the follwing message in my system.log:
/System/Library/CoreServices/NetAuthAgent.app/Contents/MacOS/NetAuthAgent[5429]: smb_mount: mount failed to servername.de/sharename : syserr = Broken pipe
With mount -t smbfs ....
I got this: mount_smbfs: mount error: /path: Broken pipe
When I mount the share as superuser it works:
sudo mount -t smbfs ....
I just used the method called the "Windows-Method".
I rebooted my mac and everything works fine again.
I never thought about this method...
Something went wrong, but I don't know what it was.