get_role_rs_commands command to return a Tcl list of the restricted shell commands associated with the currently selected role.
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.
This command takes no options.
This command takes no arguments.
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.
This example returns
: rse1-id2/c123 rse1-id1/c123
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_roles returns a Tcl list of roles in the current zone.
- list_roles lists to
stdoutthe roles in the currently selected zone.
- new_role creates a new role and stores it in memory.
- select_role retrieves 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_env returns the restricted shell environment from the currently selected role.