I am trying to mount a share with the macOS CLI using zsh as my shell.
mount -t smbfs //user:password@host/share /share
Mounting the share without specifying the password works. But then I have to enter the password manually. As soon as I pass the password via the command line, I get an error message. I have a very strong password with many special characters, such as .()[]{}<>*=.
mount_smbfs: URL parsing failed, please correct the URL and try again: Invalid argument
mount: /share failed with 64
Placing the password in single or double quotes does not solve the problem. I assume that I have to enter the password without quotes and escape some of these special characters. Where can I find a list of characters that have to be escaped in passwords (or cannot be used at all)?
security
to really complicate things…