How to allow /bin/bash commands for MacOS?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to allow /bin/bash commands for MacOS?

L3 Networker

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

3 REPLIES 3

L3 Networker

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 ?

L5 Sessionator

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,

 

L3 Networker

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.

  • 312 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!