Chat now with support
Chat mit Support

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

true

Description

Type integer READONLY

true is a read-only constant with a value of 1.

Example
if (iolog_encrypt == true ) 
{ 
   iolog = mktemp("/var/adm/pm.enc."+user+"."+command+".XXXXXX"); 
}
Related Topics

false

ttyname

Description

Type string READONLY

ttyname contains the name of the TTY device from which the user submitted a request.

Example
if ( ttyname == "dev/pts/1") 
{ 
   printf("Command not authorized using tty device dev/pts/1"); 
   reject; 
}

tzname

Description

Type string READONLY

Description

The time zone variable, tzname, contains the name of the time zone on the server at the time the event was read from the event log by pmlog. The time zone may be overridden using the TZ environment variable when running pmlog.

Note that tzname is accessible from pmlog but not in the policy script evaluation.

Example
# pmlog -p `sprintf("%s %s %s, %s, %s", date, time, tzname, event, uniqueid)’ 
2013-03-14 10:51:59 MDT, Accept, 0b1c7ff3447ac074b4795be2dcd59f6429c8624b 
2013-03-14 10:51:59 MDT, Accept, a6cfad1ba6eb64bf9a17d5295b2bb29daa7fbb33 
2013-03-14 10:51:59 MDT, Accept, fa742929679bc6c88eadd25ff85d75361f1d28b2 
2013-03-14 10:51:59 MDT, Accept, 97ffdb433819c5feab6ec26b528f60dfb18c3d34 
2013-03-15 07:02:47 MDT, Accept, d84ac9052265912eb13d32f80584d1ae097e4ce5 
2013-03-19 09:41:59 MDT, Accept, b228110f32525c2092d2a46d0327e55f2dfc1d39

The actual values may vary by platform. In this sample output, the value of tzname is "MDT".

The following example shows the use of the TZ variable acting on the output:

TZ=Europe/Paris pmlog -p `sprintf( "%s %s %s, %s", date, time, tzname, event )’ 
2013-03-14 17:51:59 CET, Accept, 0b1c7ff3447ac074b4795be2dcd59f6429c8624b 
2013-03-14 17:51:59 CET, Accept, a6cfad1ba6eb64bf9a17d5295b2bb29daa7fbb33 
2013-03-14 17:51:59 CET, Accept, fa742929679bc6c88eadd25ff85d75361f1d28b2 
2013-03-14 17:51:59 CET, Accept, 97ffdb433819c5feab6ec26b528f60dfb18c3d34 
2013-03-15 14:02:47 CET, Accept, d84ac9052265912eb13d32f80584d1ae097e4ce5 
2013-03-19 16:41:59 CET, Accept, b228110f32525c2092d2a46d0327e55f2dfc1d39
Related Topics

date

time

uid

Description

Type integer READONLY

uid contains the user ID of the submitting user on the sudo host.

Example
printf("Req uest received from user id: %d %d\n", uid,gid);
Related Topics

gid

group

rungroup

Verwandte Dokumente

The document was helpful.

Bewertung auswählen

I easily found the information I needed.

Bewertung auswählen