mount a share like this:
sudo open smb://userassword@NAS/share |
navigate to share
try to list contents
ls |
ls: .: Operation not permitted |
You need to grant Terminal either full disk access or access to network volumes in the Security and Privacy system preference.