On Fri, Jan 17, 2025, at 3:29 PM, zsh@xxxxxxxxxxx wrote:
I have:
1. An Apple silicon machine running Sequoia 15.2, with zsh 5.9
(arm64-apple-darwin24.0).
2. A Windows 10 machine with an NTFS internal drive that I want to mount
to the Mac.
3. A password on the Windows machine that cannot be changed, and
contains three special characters. The password, with the letters and
numbers obfuscated is: ****^*******%) (all * are either numbers or
letters).
What's the third special character?
This command works to mount the drive, but prompts for the password:
mount -t smbfs //username@10.0.0.23/D /Users/Shared/Windows-D\
How can I pass the password with the mount command in a format that
Windows can read? The password can be passed either through Keychain or
in plain text in the command; but I don't know how to do either
successfully.
According to my mount_smbfs(8) man page, something like this ought
to work:
% mount -t smbfs '//username:password@10.0.0.23/D' /Users/Shared/Windows-D
Note the quotes. Also you might have to percent-encode the special
characters ("%25", "%5E", etc.), but I'm not sure.
Is that what you tried? Maybe you just didn't quote properly?
(It would be much better to figure out how to authorize via Keychain,
but that's not a zsh issue.)