Posted on 01-08-2024 11:54 PM
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
Posted on 01-09-2024 05:05 AM
@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.
Posted on 01-10-2024 05:22 AM
Is there a reason you are not doing this with a Configuration Profile?
Chrome Enterprise Policy List & Management | Documentation
2. Set policies - Chrome Enterprise and Education Help (google.com)