Chat now with support
Chat with Support

Safeguard for Sudo 2.0 - Administrators Guide

One Identity Privileged Access Suite for Unix Introducing Privilege Manager for Unix Introducing Privilege Manager for Sudo Planning Deployment Installation and Configuration
Download Privilege Manager for Unix Software Packages Download Privilege Manager for Sudo Software Packages Quick Start and Evaluation Configure a Primary Policy Server Configure a Secondary Policy Server Install PM Agent or Sudo Plugin on a Remote Host Remove Configurations
Upgrading Privilege Manager System Administration Managing Security Policy The Privilege Manager for Unix Security Policy Advanced Privilege Manager for Unix Configuration Administering Log and Keystroke Files InTrust Plug-in for Privilege Manager Troubleshooting Privilege Manager for Unix Policy File Components Privilege Manager Variables Privilege Manager for Unix Flow Control Statements Privilege Manager for Unix Built-in Functions and Procedures Privilege Manager Programs Installation Packages Unsupported Sudo Options Sudo Plugin Policy Evaluation About us

keepenv

Syntax
keepenv( string env1 [, string env2, …] )
Description

The keepenv procedure modifies the runenv variable to keep only those environment variables whose names are specified. All others are deleted from the runtime environment. This is used to constrain which environment variables a user may keep when running programs through Privilege Manager for Unix.

Example
# reset the environment to the minimum 
keepenv("PATH", "TERM", “HOME”, “USER”); 
Related Topics

setenv

unsetenv

setenv

Syntax
setenv ( string name, string value )
Description

The setenv procedure sets one or more environment variables in the runenv variable.

Example
#set the shell variable 
setenv("SHELL", "/opt/quest/bin/pmsh"); 
Related Topics

keepenv

unsetenv

unsetenv

Syntax
unsetenv( string env1 [, env2, …+ )
Description

The unsetenv procedure removes the named environment variable from the runenv variable.

The following example deletes the PAGER and EDITOR environment variables from the runtime environment.

Example
unsetenv("PAGER", "EDITOR");
Related Topics

keepenv

setenv

Hash Table Functions

These are the built-in hash table functions available to use within the policy file:

Table 37: Hash table functions
Name Description
hashtable_add Add a hash table.
hashtable_create Create a hash table.
hashtable_enum Enumerate entries in a hash table.
hashtable_import Import a hash table from a file.
hashtable_lookup Lookup a value in a hash table.

Related Documents