get_role_rs_env
Use the get_role_rs_env command to return the restricted shell environment from the currently selected role that is stored in memory.
The get_role_rs_env command does not query the data stored in Active Directory for the role. If you change the restricted shell environment in ADEdit without saving the role to Active Directory, the value you retrieve using get_role_rs_env won’t match the same value for the role that is stored in Active Directory.
You can only use the get_role_rs_env command if the currently selected zone is a classic4 zone. The command does not work in other types of zones.
Zone Type
Classic only
Syntax
get_role_rs_env
Abbreviation
grrse
Options
This command takes no options.
Arguments
This command takes no arguments.
Return Value
This command returns the restricted shell environment of the currently selected role if it runs successfully. If the currently selected role does not require a restricted shell environment, the command returns nothing.
Examples
get_role_rs_env
This example returns the restricted shell environment if it exists for the selected role:
rse1
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:
list_rs_envslists tostdoutthe restricted shell environments.new_rs_envcreates a new restricted shell environment and stores it in memory.save_rs_envsaves the restricted shell environment to Active Directory.select_rs_envretrieves a restricted shell environment from Active Directory and stores it in memory.