Hi all,
Yesterday in Massachusetts we had a Winter storm, so naturally my brain is off by a day; forgive my ignorance if this turns out to be an easy one.
I am trying to mount a share via script. It works initially, then I unmount it and attempt to remount with the script. I get an error saying server refused the connection, authentication error. I try using the Connect to Server GUI, and doesn't work no matter the credentials.
If I leave for a bit (~30 minutes) and come back and try again it works initially again, but any tries directly after again do not work.
Reviewing logs on the file server, if I intentionally type the password wrong into the script it logs an error as expected but is not logging any errors when it is refusing connection using the correct password. This makes me think the SMB client on the Mac is somewhat at fault here.
Note: no Kerberos ticket or keychain entries to contend with.
Here is the syntax I am using:
#!/bin/sh
mkdir /Volumes/sharename
mount -t smbfs //domain;user:pass@server/sharename /Volumes/sharename
#do something
umount /Volumes/sharename
Does anyone have any ideas? If there is a SMB cache or something, how could I appropriately reset this if this is at fault?
