Define the right for running all commands

Rights and roles are defined at the zone level and inherited down the zone hierarchy. If you define a right in the top-level zone, it is available in all child zones. If you define a right in a child zone, it can be used in that zone and any of its child zones. Similarly, you can define roles in the top-level parent or any child zone, depending on where you want to make the role available. In this example, the right to run all commands as the root user is defined in a top‑level parent zone.

The following instructions illustrate how to define a right for running all commands using Access Manager. Examples of scripts that use the Access Module for Windows PowerShell, ADEdit, or the Centrify Windows API are available in other guides, the Centrify Software Developer’s Kit, or in community forums on the Centrify website.

To define a right for running all commands as root:

  1. Open Access Manager.
  2. Expand Zones and select the top-level parent zone.
  3. Expand Authorization > UNIX Right Definitions.
  4. Select Commands, right-click, then click New Command.
  5. On the General tab, type a name for this command right and, optionally, a description for this right, then define the right to run all commands like this:

    • Type an asterisk (*) in the Command field to indicate all commands are allowed.
    • Select Specific path and type an asterisk (*) in the field to indicate that any path is allowed.
  6. Click the Restricted Shell tab and deselect the Can be used in a restricted role option if you want to prevent this command from being used in a role that uses a restricted shell environment.
  7. Click the Run As tab to verify the command can be used by dzdo and is set to run as root by default.
  8. Click OK to use the default environment variable settings and command attributes.

    Alternatively, you can click the Environment and Attributes tabs if you want to view or set additional properties for this right definition.