Privilege Manager for Sudo command does not run in cron.
Error message is "Request rejected by Privilege Manager"
The same command can be ran on the command line.
This can be caused by the command requiring a tty.
Check the email message produced by cron for the following entry:
sudoers: sorry, you must have a tty to run sudo
RESOLUTION:
Configure sudoers to not require tty
E.g.
Edit the policy:
# pmpolicy edit
Add the following:
Defaults !requiretty
To only disable this for a specific user, then add:
Defaults:username !requiretty
To only disable for a specific program:
Defaults!/path/to/program !requiretty
© 2025 One Identity LLC. ALL RIGHTS RESERVED. Conditions d’utilisation Confidentialité Cookie Preference Center