EPM - MacOS How to make sudo commands prompt for password with Elevate unhandled applications default policy
105
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 15:58 PM
Objective
The purpose of this article is to show you how to create a policy to force sudo commands to still prompt for username and password when the default policy is set to "Elevate unhandled applications"
Instructions were made based onĀ EPM Version 23.9.0.3647
Environment
23.9 EPM EPM Console;Mac Agent
Procedure
1) Create a custom dialog which will be for sudo commands
- EPM Console > End User UI > Actions > Add Dialogs > MacOS section > Elevate Trusted
- Give your new dialog a name
- Uncheck "justification text"
- Uncheck "justification"
- Check "authorized user"
- Check "password"
- Click OK to save the dialog
2) Create an advanced policy
- EPM Console > Policies > Create advanced application policy > set Platform to MacOS > Set action to elevate > click continue
- Add definition
- Change definition type drop down to sudo command
- Next to command, change the drop down to "matches wildcard"
- You may notice an error in the wizard that shows "Asterisk alone cannot be used." If you do, put a space after the asterisk.
- Remove the other properties for "parameters" and "publisher's signature". The click done to save the definition
- In the End User UI section, specify the dialog you created in step #1
- Add targeting to the policy as needed to test
- Click create