Apple have confirmed to me (https://openradar.appspot.com/radar?id=4948585099558912) that with macOS 10.12, permissions to create a folder inside
/Volumes require root access.
mount command requires that the mount point exists first, so you're going to have to sudo to create that folder for the mount point.
I develop an app which presents a list of network shares to a the user, and allows them to selectively mount them. I handle this by firing off a command process in the background which uses
mount to mount the network drive.
Of course this now fails, as it doesn't have permission to create the mount point.
One option I am looking into is modifying sudoers to give all users permission to use
Can anyone else think of a way to programmatically mount a network drive via Terminal without password prompts, or messing with sudo?