list_rs_commands

Use the list_rs_commands command to print a list of the restricted shell commands that are defined for the currently selected zone. This command retrieves information from Active Directory and to returns the list of restricted shell commands to stdout. If you want to return a Tcl list of restricted shell commands, use get_rs_commands.

Zone type

Classic only

Syntax

list_rs_commands

Abbreviation

lsrsc

Options

This command takes no options.

Arguments

This command takes no arguments.

Return value

This command returns a list of restricted shell commands for the currently selected zone.

Examples

list_rs_commands

This command returns the list of restricted shell commands and attributes similar to this:

rseid1/c123 : id form(0) dzsh_runas($) umask(77) path(USERPATH) flags(0) :
rseid2/c123 : id2 form(0) dzsh_runas($) pri(1) umask(77) path(USERPATH) flags(0) : id2

Related commands

Before you use this command, you must have a currently selected zone stored in memory. The following commands enable you to view and select the restricted shell command to work with:

  • get_rs_commands returns a Tcl list of restricted shell commands in the current zone.
  • new_rs_command creates a new restricted shell command and stores it in memory.
  • select_rs_command retrieves a restricted shell command from Active Directory and stores it in memory.

After you have a restricted shell command stored in memory, you can use the following commands to work with that restricted shell:

  • delete_rs_command deletes the selected command from Active Directory and from memory.
  • get_rsc_field reads a field value from the currently selected command.
  • save_rs_command saves the selected command with its current settings to Active Directory.
  • set_rsc_field sets a field value in the currently selected command.

Related commands

Before you use this command, you must have a currently selected zone stored in memory. The following commands enable you to view and manage the restricted shell commands:

  • delete_rs_command deletes the selected command from Active Directory and from memory.
  • new_rs_command creates a new restricted shell command and stores it in memory.
  • save_rs_command saves the selected restricted shell command with its current settings to Active Directory.
  • select_rs_command retrieves a restricted shell command from Active Directory and stores it in memory.

After you have a restricted shell command stored in memory, you can use the following commands to work with its fields:

  • get_rsc_field reads a field value from the current restricted shell command.
  • set_rsc_field sets a field value in the current restricted shell command.