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 IBM Security 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,

  1. Navigate to Admin | Actions.

  2. Click Create Action.

  3. For Platform, select macOS.

  4. For Type, select Command Line Justification Message.

  5. Enter a name and description.

  6. Click Create.

    alt

  7. Under Settings, use the color tooling options and editor to add and customize your message prompt for the users.

  8. 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.