get_role_rs_commands
Use the get_role_rs_commands command to return a Tcl list of the restricted shell commands associated with the currently selected role.
The get_role_rs_commands command does not query Active Directory for the restricted shell commands. If you change the restricted shell commands associated with the current role using ADEdit without saving the role to Active Directory, the commands you retrieve using get_role_rs_commands won’t match the restricted shell commands that are stored in Active Directory.
You can only use get_role_rs_commands if the currently selected zone is a classic4 zone. This command does not work in other types of zones.
Zone Type
Classic only
Syntax
get_role_rs_commands
Abbreviation
grrsc
Options
This command takes no options.
Arguments
This command takes no arguments.
Return Value
This command returns a Tcl list of restricted shell commands associated with the currently selected role. Each restricted shell command in the list shows the restricted shell command name followed by a slash (/) and the zone in which the restricted shell command is defined.
Examples
get_role_rs_commands
This example returns : rse1-id2/c123 rse1-id1/c123
Related Commands
Before you use this command, you must have a currently selected role stored in memory. The following commands enable you to view and select the role to work with:
get_rolesreturns a Tcl list of roles in the current zone.list_roleslists tostdoutthe roles in the currently selected zone.new_rolecreates a new role and stores it in memory.select_roleretrieves a role from Active Directory and stores it in memory.
After you have a role stored in memory, you can use the following commands to work with restricted shells:
get_role_rs_envreturns the restricted shell environment from the currently selected role.