We have a share Directory on Windows 2003 which is C:\\share We have a user who's account is bill , password is "pwd@123" we use below command to mount directory to our Mac. /usr/bin/osascript -e 'mount volume "bill:pwd@123@myserver/PUBLIC" ' When we run this command, a warning message windows showed up and it said we couldn't find domain 123, and mount failed. looks like samba make a mistake about the password.
I do not believe this is a Samba problem, more a problem with your Mac client (or how the command you use expects username and password to be delimited) Maybe you need to escape the at sign? Something like /usr/bin/osascript -e 'mount volume "bill:pwd\@123@myserver/PUBLIC" '
Thanks, you're totally right, I figure out what should I do in this case. The answer is /usr/bin/osascript -e 'mount volume "smb://myserver/PUBLIC as user name "bill" with password "zhaorui@123" "'. This command could work. It's not a bug of samba. (In reply to comment #1) > I do not believe this is a Samba problem, more a problem with your Mac client > (or how the command you use expects username and password to be delimited) > > Maybe you need to escape the at sign? Something like > /usr/bin/osascript -e 'mount volume "bill:pwd\@123@myserver/PUBLIC" '