Hello,
I'm trying to use the mountnetworkshare.sh script to map several network locations for my userbase. When I place the correct variables, the script seems to parse them correctly, but then I get a large amount of 'No such file or directory' errors. This happens both with DFS and SMB shares (I don't have any AFP shares I'm aware of). I have this set as a login trigger, and the script says it completes 'successfully'.
Output is as follows:
For SMB
Script result: Volume name will be created as (Folder2)...
Attempting to mount smb SMB://(Domain/ShareFolder1/ShareFolder2) using (user)'s kerberos ticket...
su: /usr/bin/sh: No such file or directory
su: /usr/bin/sh: No such file or directory
su: /usr/bin/sh: No such file or directory
su: /usr/bin/sh: No such file or directory
Loading com.jamfsoftware.mapdrive.(Folder2)...
su: /usr/bin/sh: No such file or directory
For DFS:
Script result: Volume name will be created as Folder2...
Attempting to mount DFS DomainFolder1Folder2 using (user)'s kerberos ticket...
su: /usr/bin/sh: No such file or directory
su: /usr/bin/sh: No such file or directory
su: /usr/bin/sh: No such file or directory
su: /usr/bin/sh: No such file or directory
Loading com.jamfsoftware.mapdrive.(Folder2)...
su: /usr/bin/sh: No such file or directory
I have the correct parameters set ($5, $7, $8) and I am not using hardcoded values but I'm not sure why this error is occurring. It is having the problem on a 10.12.6 machine.