立即与支持人员聊天
与支持团队交流

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

date

Description

Type string READONLY

date contains the date the request was submitted in the form: YYYY/MM/DD.

Example
if (pmshell) 
{ 
   # prints the date and time the shell was opened 
   print( command + " started " + date + " "+ time ); 
   accept; 
}
Related Topics

dayname

minute

hour

day

month

year

time

day

Description

Type integer READONLY

day contains the day the request was submitted formatted as an integer in the range: 1–31.

Example
if (command == "dailyadmin") 
{ 
   if (day == 1) 
   { 
      # first day of the month 
      runcommand = "" 
   } 
}
Related Topics

dayname

minute

hour

date

month

year

time

dayname

Description

Type string READONLY

dayname contains the abbreviated name ("Mon", "Tue, "Wed", "Thu", "Fri", "Sat" or "Sun") of the day the request was submitted.

Example
switch (dayname) 
{ 
   case "Mon": 
   case "Wed": 
   case "Fri": 
      adminusers = {"dan","robyn"}; 
      break; 
   case "Tue": 
   case "Thu": 
      adminusers = {"robyn","cory"}; 
      break; 
   default: 
      adminusers = {}; 
} 
if (user in adminusers) 
{ 
   runuser = "root"; 
   accept; 
}
Related Topics

minute

hour

day

month

year

time

date

domainname

Description

Type string READONLY

The Active Directory domain name for the submit user if Authentication Services is configured and the client is able to determine the domain name. Otherwise this variable is set to an empty string.

Example
# reject if the user is not in the uxwheel AD group 
if (vas_user_is_member(samaccount, "uxwheel", domainname) == false) 
   reject "user is not in uxwheel group";
Related Topics

samaccount

相关文档

The document was helpful.

选择评级

I easily found the information I needed.

选择评级