EPM - MacOS Sudo Grace validation period not working as expected

EPM - MacOS Sudo Grace validation period not working as expected

109
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:53 PM


Symptom


After installing EPM, when executing sudo users are now prompted for credentials on every sudo command, instead of using the previous grace period in the sudoers file.



Environment


24.12

EPM installed

No applicable EPM advanced policy to elevate sudo commands



Cause


When EPM is installed, the sudoers file is edited so that ...

Defaults timestamp_timeout=0 

This is the setting which normally controls the amount of time before the MacOS will prompt for a password.  When EPM policies are in place, EPM needs this setting to be 0 so EPM can control the behavior.

EPM's "Sudo grace validation period" does not apply if there is no EPM dialog where the EPM dialog asks for a password. 



Resolution


  1. EPM > Policies > End User UI > Create Dialog
  2. Name it something to indicate it's a MacOS dialog that ask for a password. Set platform to MacOS. Set Trigger type to "Launch with elevated privileges". Click Continue.
  3. In the dialog creation wizard, expand "user step-up authentication request" and turn on "Authenticate with local user". Radio bubble should choose "Authenticate signed-in user (default)". "Ask for user password" should also be enabled.
  4. Create the dialog
  5. EPM Console > Policies > Create Advanced Policy
  6. Set Platform to MacOS. Set Action to Elevate
  7. Add definition type "Sudo command". Command matches wildcard *
  8. In the End user UI section, specify the dialog you just created
  9. In the "Targets" section add an entry for "Users and Groups". Set type drop down to "Local/Active Directory group". Enter the group name as .\admin
  10. Click Add and Done. Save the policy


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000rKTCAY&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail