Command Line Justification Message Action
This message action prompts the user for a justification when using Terminal to execute commands and scripts under sudo
. This action is specifically designed to work with the Delinea macOS sudo plugin and is only intended for commands that run under sudo
based on the following use case:
- the user runs
sudo <command>
- the user is prompted to supply a justification, which happens directly in the same terminal
- the command is then run with elevation
To create the message action,
-
Navigate to Admin | Actions.
-
Click Create Action.
-
For Platform, select macOS.
-
For Type, select Command Line Justification Message.
-
Enter a name and description.
-
Click Create.
-
Under Settings, use the color tooling options and editor to add and customize your message prompt for the users.
-
Click Save Changes.
Refer to Using the Command Line Action Editor for information on how to use the editor.
The Command Line Justification Message action is the preferred message action to elevate commands and scripts run under sudo
.