When I single-quote the whole thing, with or without the double-quotes,
I get "command not found".
I did find that a single quote around just the password with the %codes
but not the double-quotes does work, so I have adopted that.
Experimenting this morning has shown that the \ at the end can be be \
or / or eliminated altogether, so I have now dropped that bit of ugliness.
My current working version is:
mount -t smbfs //username:'****%5E*******%25%29'@10.0.0.23/D
/Users/Shared/Windows-D
I did wonder where you found that formatting of the special characters,
none of my searches turned it up, but it works.
What I really wanted to do, for the icing on the cake, was the run this
as root at boot (before any user logs on). But I ran afoul of Apple's
wagging finger on that. If I run this mount command as the root user,
then root owns the folder and has exclusive rights to it, and chown &
chmod (even when run as the root user) have no effect.
I know I have options, including mounting at login of each user. I will
continue wandering down this road.
Thanks much,
Ken
On 1/17/25 10:18 PM, Lawrence Velázquez wrote:
> On Fri, Jan 17, 2025, at 8:14 PM, [email protected] wrote:
>> With your input, I was able to find the winning combination:
>
> Good to hear it.
>
>
>> mount -t smbfs //username:****"%5E"*******"%25""%29"@10.0.0.23/D
>> /Users/Shared/Windows-D\
>
> While that quoting is valid, it's pretty unorthodox (and, frankly,
> hideous). It would be more sensible to just single-quote the whole
> thing so you don't have to worry about zsh interpreting any special
> characters anywhere in the path:
>
> '//username:****%5E*******%25%[email protected]/D'
>
>
>> On 1/17/25 4:12 PM, Lawrence Velázquez wrote:
>>> On Fri, Jan 17, 2025, at 3:29 PM, [email protected] wrote:
>>>> 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?
>
> Oh I see, the third character is ")". I'd assumed that was closing
> a parenthetical phrase.
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.