Tchater maintenant avec le support
Tchattez avec un ingénieur du support

Privilege Manager for Unix 6.1 Common Documents - Administration Guide

One Identity Privileged Access Suite for Unix Introducing Privilege Manager for Unix Planning Deployment Installation and Configuration Upgrade Privilege Manager for Unix 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

getenv

Syntax
string getenv ( string name [, string value] )
Description

getenv returns the value of the specified environment variable from the runenv variable.

Example
# print the value of HOME if defined, otherwise print "none" 
print(getenv("HOME", "none")); 
Related Topics

keepenv

setenv

unsetenv

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.

Example

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

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

keepenv

setenv

Documents connexes