Posted on 08-05-2021 04:47 PM
We have been deploying the sdl license adobe pkgs by attaching local USB storage then running a script post imaging.
#!/bin/sh
/usr/sbin/installer -pkg /Volumes/Deploy/Fa21BaseFTVM1Install.pkg -target /
Not using imaging now but in testing this with jamf remote doesn't work:
Script result: installer: Error - the package path specified was invalid: '/Volumes/Deploy/Fa21BaseFTVM1Install.pkg'
if running the command locally via terminal it works. Any ideas? Do remotely invoked commands not have access to removable storage?
Posted on 08-06-2021 07:29 AM
Since all policies from Jamf run as root, it's possible that the script can't be run as root. So, to test this theory out, run the script as the user
To run as a user:
#Get logged in user
curUser="`stat -f%Su /dev/console`"
#run script as user
sudo -u $curUser ENTERYOURSCRIPTHERE
Posted on 08-07-2021 03:40 PM
Will try this. However noticed this error only happens on our big sur M1 systems. wondering if it might be an enhanced security setting.
Posted on 08-09-2021 05:23 AM
Did you install Rosetta? If I remember correctly, Rosetta is required to install packages
Posted on 08-11-2021 06:19 PM
Thanks yes rosetta was installed
Posted on 08-11-2021 06:22 PM
Turns out that even after enrollment sshd-keygen-wrapper did not have full disk access.
Changed privacy settings to enable