Mounting a shared drive using terminal requires password since a recent OS upgrade
Hello,
I run a lot of scripts in the background for automation, and these scripts require shared drives to be mounted to perform actions.
These drives are mounted using an "open" command like "open afp://192.168.0.1/Share" or "open smb://guest:guest@192.168.0.2/AnotherShare".
Until recently, running this command would silently mount the drive on the finder and it would be available in "/Volumes".
Now, anytime my scripts use this command, an authentication window would pop up on the Finder, asking for user / password. As they are available in my keychain, the fields are already filled out, and I only have to hit enter to proceed. Then it would ask for the folder to mount (Share or AnotherShare in my examples), with the proper folder already selected. Again, I only have to hit enter to proceed and the volume will mount.
I understand this might be a protection about scripts going unnoticed mounting folders, copying files, which might be even as unsafe.
I'm running 10.13.6 with latest security patches applied. I have the same issue on 10.14.
Does anyone know how to get rid of this ? Any hidden settings ?
Thanks
jm
MacBook Pro