- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
08-12-2022 11:53 AM
Added events to policies on the Mac's is not very good, seems like you have to modify them to get them to work. Anyway, I'm trying to allow the below. I was trying to add just the generic so anything after /bin/bash would run.
udo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
08-14-2022 05:59 AM
Hi @Shane Ryley
Regarding your question, we would be happy hearing from you regarding:
"Added events to policies on the Mac's is not very good, seems like you have to modify them to get them to work."
Can you elaborate more, what was required to modify to get them work ?
08-14-2022 06:36 AM
Hi @Shane Ryley
I saw you are trying install Homebrew - please see here - https://community.cyberark.com/s/article/How-to-install-HomeBrew-on-Mac-with-EPM-as-a-User-context how to install Homebrew in user context as running it as root is less secured.
In addition, note that your command uses an online resource which is less secured so you may want first download it locally (examine it) and then execute.
Nevertheless, having sudo policy on bash command is possible and should work.
If it doesn't, could you please post here the policy ?
Thanks,
08-15-2022 08:12 AM
The homebrew was just an example. We have developers that run different commands using /bin/bash in terminal. It would be nice if we could allow that in cyberark.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

