Running Unix Commands Via Jamf

Helme
New Contributor

Hi All,

I am trying to push a few terminal commands via jamf to users machines. I wrote the script up and it states it has completed the deployment successfully. When i go to test what the script is supposed to do, there are no changes. I need this to run as the local user. I understand that by default it runs as root. Below is my current apple script.

do shell script "sudo defaults write com.google.Chrome AuthServerWhitelist '<Domain>'"
do shell script "sudo defaults write com.google.Chrome AuthServerWhitelist '
<Domain>'"

2 REPLIES 2

donmontalvo
Esteemed Contributor III

maxbehr
Contributor II

Agree…use a configuration profile for this. So much easier to do and maintain. If you need help let me know and I can shoot you a sample of the file I use.