How to mount a Samba directory through Terminal, in the same way as CMD+K in Finder?
Hi,
I have a problem when mounting a directory
Apple recommend Samba for mounting a share from a NAS.
I want to mount the directory using terminal. A shell script.
So that I can use rsync to backup my work directories
selectively with least resource consumption.
The problem is that, If I do: "open 'smb://user@server/myshare'" in the terminal,
the mounts end up having "smbfs, nodev, nosuid, quarantine" attributes.
However if I use CMD+K to mount, the mount has only have
"smbfs, nodev, nosuid" attributes, and that way there is no "quarantine" attribute.
This happens with recent updates, perhaps since BigSur? Not sure to confirm though.
I need help today to find a way to mount the share in the same way as Finder's CMD+K, but through the terminal.