Skip to main content
Question

Running Unix Commands Via Jamf

  • October 2, 2014
  • 2 replies
  • 9 views

Forum|alt.badge.img+3

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

donmontalvo
Forum|alt.badge.img+36
  • Hall of Fame
  • October 2, 2014

Forum|alt.badge.img+5
  • New Contributor
  • October 7, 2014

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.