Skip to main content
Solved

MySides - Can only run locally

  • September 1, 2017
  • 2 replies
  • 36 views

Forum|alt.badge.img+5

Hello,

I manage a handful of labs. I am trying to use MySides to configure the Finder Sidebar to be basically empty. I installed the MySides binary on my target machines. When I run "mysides remove all" in terminal on the local machine, it works exactly as expected.. all sidebar items disappear. But if I run that same command via Casper Remote, or with a policy, it never works. I also tried saving the command as an executable script on the local machine, and calling that with a policy, but it still doesn't work - but if I launch the script on the local machine by double clicking, it works just fine. I am still a little bit of a novice with this sort of thing. Am I missing something? Is there a better way to do this?

Thanks

Best answer by sdagley

@ktaylor25 When run from a policy your script runs as root, not as the logged in user. See this post for an example of running something as the logged in user: Running a "brew install" command as the current logged in user? (or search Jamf Nation, there's lots of other examples)

2 replies

sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • Answer
  • September 1, 2017

@ktaylor25 When run from a policy your script runs as root, not as the logged in user. See this post for an example of running something as the logged in user: Running a "brew install" command as the current logged in user? (or search Jamf Nation, there's lots of other examples)


Forum|alt.badge.img+5
  • Author
  • New Contributor
  • September 1, 2017

@sdagley Thanks for pointing me in the right direction. It's working now!