Skip to main content
Question

Running Unix Commands Via JAMF


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>'"

donmontalvo
Forum|alt.badge.img+36
  • Legendary Contributor
  • October 2, 2014

Is this a duplicate post?

Running Unix Commands Via JAMF
https://jamfnation.jamfsoftware.com/discussion.html?id=12003


Forum|alt.badge.img+10
  • Contributor
  • October 2, 2014

can you set the the full path of the plist instead of the domain?

defaults write /Users/$USER/Library/Preferences/com.google.Chrome.plist…


bentoms
Forum|alt.badge.img+35
  • Legendary Contributor
  • October 3, 2014

The JAMF Binary runs as root, so those changes will be being made to the root users account.

Tbh, this would be better managed via a config profile or managed preference


Forum|alt.badge.img+15
  • Contributor
  • October 3, 2014

When I needed to do that, I created a LaunchAgent. JAMF runs as root so you can make a mess when trying to modify a user's plist files directly.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings