지금 지원 담당자와 채팅
지원 담당자와 채팅

Privilege Manager for Unix 7.1.1 - Administration Guide

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 for Unix Troubleshooting Privilege Manager for Unix Policy File Components Privilege Manager for Unix Variables
Variable names Variable scope Global input variables Global output variables Global event log variables PM settings variables
Privilege Manager for Unix Flow Control Statements Privilege Manager for Unix Built-in Functions and Procedures
Environment functions Hash table functions Input and output functions LDAP functions LDAP API example List functions Miscellaneous functions Password functions Remote access functions String functions User information functions Authentication Services functions
Privilege Manager for Unix programs Installation Packages

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

Hash table functions

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

Table 35: Hash table functions
Name Description
hashtable_add Add a new list value to a hash table.
hashtable_create Create a new hash table.
hashtable_enum Enumerate entries in a hash table.
hashtable_import Import a hash table from a file.

hashtable_lookup

Look up a value in a hash table.

hashtable_add

Syntax
int hashtable_add ( int hid, string key , list value)
Description

hashtable_add adds a new list value to the specified hash table, associated with the specified key.

Returns 0 if the hash table was successfully added, otherwise returns non-zero.

Example
hid=hashtable_create(); 
hashtable_add(hid, "unxadm", {"johnd", "davel", "jamesp"}); 
hashtable_add(hid, "winadm", {"marym", "stevec", "janel"}); 
print("Windows Admin Group:" + hashtable_lookup(hid, "winadm")); 
관련 문서

The document was helpful.

평가 결과 선택

I easily found the information I needed.

평가 결과 선택