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

Privilege Manager for Unix 7.0 - 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

pmclient_type

Description

Type integer READONLY

The client type (pmrun or sudo) of the Privilege Manager for Unix request.

Example
# reject if pmclient_type is "sudo" 
if (pmclient_type == pmclient_type_sudo) { 
   reject; 
} else if (pmclient_type == pmclient_type_pmrun) { 
  ok = true; 
} 

pmclient_type_pmrun

Description

Type integer READONLY

Read-only constant for pmrun type clients. You can compare pmclient_type_pmrun to pmclient_type to determine if the request was sent from a Privilege Manager for Unix client including the pmrun command, the pmshells (pmksh, pmsh, pmcsh, pmbash), and the pmshellwrapper.

Example
# reject if pmclient_type is "sudo" 
if (pmclient_type == pmclient_type_sudo) { 
   reject; 
} else if (pmclient_type == pmclient_type_pmrun) { 
   ok = true; 
} 

pmclient_type_sudo

Description

Type integer READONLY

Read-only constant for sudo type clients. You can compare pmclient_type_sudo to pmclient_type to determine if the request was sent from a Sudo Plugin client.

Example
# reject if pmclient_type is "sudo" 
if (pmclient_type == pmclient_type_sudo) { 
   reject; 
} else if (pmclient_type == pmclient_type_pmrun) { 
   ok = true; 
}

pmshell

Description

Type integer READONLY

pmshell initializes to true if a Privilege Manager for Unix shell program (such as pmksh, pmsh, pmcsh, pmloginshell, and pmbash) is running; otherwise, the variable is undefined.

Example
if (defined pmshell) 
{ 
   printf ("Now running: %s\n", pmshell_prog); 
   pmshell_restricted = 1; 
   pmshell_checkbuiltins = 1; 
   pmshell_reject = "You are not allowed to run this command"; 
   pmshell_allow = {"ls","grep","cat"}; 
   pmshell_forbid = append(pmshell_forbid, "passwd"); 
   pmshell_forbid = append(pmshell_forbid, "kill"); 
} 
else 
{ 
   printf("Not running a command within %s\n", pmshell_prog); 
   accept; 
}
관련 문서

The document was helpful.

평가 결과 선택

I easily found the information I needed.

평가 결과 선택