- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-02-2025 10:14 PM
Hi,
When a user submits an elevation request for `sudo apt upgrade`, and I approve the request, I observe multiple subsequent elevation requests. In my opinion, these requests are primarily generated by child processes initiated under the `upgrade` command rather than being directly triggered by the user. Pls assist for reducing these bulk(tons of tons) elevation requests.
02-04-2025 01:22 PM
Hi @Maharram Najafov ,
Indeed, they look as child processes.
You can control on events of child process from the agent configuration --> Data Collection --> Collect child command events.
Once you set it to Off you should not get child process events.
Thanks,
Arik.
08-04-2025 10:39 AM
Hey @Arik Rabi - I am on the same boat as @Maharram Najafov is.
When I run sudo apt-get update/upgrade, I keep getting a lot of events for possible child processes. I can potentially turn the "Collect Child command events" OFF, however, I am having a question and would request your help with this, @Arik Rabi
What would be the best way to add "sudo apt-get *" to the policy? Within Application Definition, there is this option "Child Commands" with the options to either "Elevate all", "Elevate if permitted by any policy" and "Block all".
"Elevate All" Scenario:
If I set this to "Elevate all", this technically elevates literally every command spawned by child processes, which is not ideal since not all of those need elevation. For instance "gpgv" can be used as a medium to import malicious keys by attackers. By selecting elevate all, this would be a potential risk. Not just this, there are several others.
"Elevate if permitted by any policy" Scenario:
Moving onto "Elevate if permitted by any policy", if Additional policy "Elevate unhandled applications" is turned off, and "Detect privileged unhandled applications" turned on, the application definition for "sudo apt-get" has the "Elevate if permitted by any policy" enabled instead of "Elevate all", what if it doesn't update all the packages? This sure would have an issue with updating/upgrading completely.
Keeping these two scenarios, how can we elevate the "apt-get *"?
Your help means a lot. Thank you.
08-04-2025 11:44 AM
Hi @Arun Vemuri
Welcome to the boat 🚢 🙂
The "Elevate if permitted by any policy" is indeed it's more secure but requires more maintenance as you need to define policies for any command, so it's up to you decide.
In the situation you described all child command will be elevated (because of the default policy) except the ones that have block policy so it sounds like a good way.
I didn't fully understand the question - what do you mean by "it doesn't update all the packages" ? do you mean EPM may block some upgrades ?
Thanks,
Arik
08-04-2025 11:51 AM
Thank you @Arik Rabi for your prompt response and explaining about this. Answering this question:
"I didn't fully understand the question - what do you mean by "it doesn't update all the packages" ? do you mean EPM may block some upgrades ?"
Yes. I mean what if EPM may block some upgrades?
I agree with what you said with the "Elevate if permitted by any policy". Ultimately, would you recommend having the "Elevate all" enabled and block the one's that are not required? I am sorry, I'm new to the EPM for Linux and trying to understand what would be the best path forward for handling the events since this is slightly confusing.
08-05-2025 03:32 PM
Hi @Arun Vemuri ,
I can't recommend because it's really depends on your organization policy, just have in mind that if you set "Elevate all" then even if you have block policies, they will not be blocked.
If you are new to EPM suggest going over this link - https://docs.cyberark.com/epm/latest/en/content/intro/linuxbestpractices.htm
Good Luck,
Arik.
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!

