user role export

Export a role description or definition to a file that defines the list of commands a custom role is able to perform. See Appliance Users and Roles for more information.

An appliance administrator might need to view and export the command permissions assigned to a specified custom role on the Luna Network HSM 7 appliance, in order to review a role's permissions directly in the terminal or export them to a file for reuse and comparison across other appliances.

For this purpose:

>Only the admin role, by default, can execute this command or the accompanying show command.

>An error is returned if the specified role does not exist.

>Export is for custom roles only; an error is returned if you attempt to export any of the system-defined roles.

>The export command writes a file to the appliance files directory (from which it can be secure-copied to other systems).

>The show command displays the role's commands in the terminal without creating a file.

>Custom role export files are retained on the appliance when HSM firmware is rolled back or upgraded.

If you make changes to the commands available to an existing custom role (viewable with the show command) and export again, an existing export file is overwritten. Redistribute the file to other HSM appliances in your purview, and import, if the goal is to maintain conformity across appliances.

NOTE   The commands that can be recruited for this operation include all those available to the appliance admin user, or roles subordinate to admin.(*)

The appliance audit user is not a subordinate role under admin, and those commands cannot be included in a custom role definition file.

(* Availability of commands also depends on whether or not a command exists in the particular appliance or the cryptographic module within the appliance. Thus an older software or firmware version might not include commands that were introduced in later versions. Similarly, some commands might be present only if specific optional secure packages are installed. In either case the attempt to import a role definition file with unavailable commands would be rejected. Rejection can also occur if commands in a role definition file are misspelled or do not have exact lettercase. The rejection message will name any rejected commands to help you troubleshoot.)

See user role import the file format of a role definition.

NOTE   It is up to you to name your role definition files usefully, and to recognize them when you import them.

Syntax

user role export -role <rolename>

NOTE   The rolename string is the name of a role that already exists on the current Luna Network HSM 7 appliance, and should be unique and recognizable for management and handling across the HSM appliances in your care.

Argument(s) Shortcut Description
-role <rolename> -r

The name of the administrative role for which a description file is being exported.

Example

lunash:user role export -role uniquename

The role commands file is available for transfer under the filename uniquename_role_commands.txt.

Command Result : 0 (Success)