Skip to main content
Question

Run Command on Current User

  • January 9, 2024
  • 2 replies
  • 29 views

Forum|alt.badge.img+4

Hello,

 

I need to run a command for current user. I tried with script but it work for root account.

 

I need the run this command for current users.

defaults write com.google.chrome IncognitoModeAvailability 0

2 replies

sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • January 9, 2024

@foreverkan See the https://scriptingosx.com/2020/08/running-a-command-as-another-user/ blog post detailing how to run something as the current user.


AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • January 10, 2024