clear_rs_env_from_role

Use the clear_rs_env_from_role command to remove the restricted shell environment from the currently selected role that is stored in memory.

The clear_rs_env_from_role command does not modify the information stored in Active Directory for the role. If you run this command using ADEdit without saving the role to Active Directory, the change will have no effect on the restricted shell environment stored in Active Directory.

You can only use the clear_rs_env_from_role 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

clear_rs_env_from_role

Abbreviation

crse

Options

This command takes no options.

Arguments

This command takes no arguments.

Return value

This command returns nothing if it runs successfully.

Examples

clear_rs_env_from_role

This example removes the restricted shell environment from the current role.

Related commands

The following commands perform actions related to this command:

  • get_rs_envs returns a Tcl list of restricted shell environments.
  • list_rs_envs lists to stdout the restricted shell environments.
  • new_rs_env creates a new restricted shell environment and stores it in memory.
  • select_rs_env retrieves a restricted shell environment from Active Directory and stores it in memory.
  • set_rs_env_for_role assigns a restricted shell environment to the current role.

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

  • delete_rs_env deletes the current restricted shell environment from Active Directory and from memory.
  • get_rse_field reads a field value from the current restricted shell environment.
  • save_rs_env saves the restricted shell environment to Active Directory.