0
I am trying to mount a SMB network drive from my Mac terminal. The user id is firstname lastname with a space in between. I have tried all sorts of combinations but none of these are working.
mount_smbfs //firstname\ lastname@server/home /Volumes/home
mount_smbfs //"firstname lastname"@server/home /Volumes/home
mount_smbfs //firstname" "lastname@server/home /Volumes/home
mount_smbfs //firstname\040lastname@server/home /Volumes/home
Either I am getting URL parsing failed or usage error or incorrect username (not an error but it's not able to authenticate). It however works for username with no spaces or special characters.
Is there any way this can be achieved?
Have you tried: mount_smbfs //"firstname lastname"@server/home /Volumes/home? – Sir Adelaide – 2017-03-07T04:53:31.920
Yes I have tried that as well – Neel – 2017-03-07T14:24:59.167
Updated the post to include this – Neel – 2017-03-07T14:34:09.500
Apparently it works with
%20
in the share name. It’s worth a try I guess! – Daniel B – 2017-03-07T14:43:33.367Daniel - this works...
mount_smbfs //firstname%20lastname@server/home /Volumes/home
I guess because the share name combined with user id and password is parsed as a uri - so the percent encoding works
thanks – Neel – 2017-03-07T22:09:24.343