Chat now with support
Chat with Support

Safeguard for Sudo 2.0 - Administrators Guide

One Identity Privileged Access Suite for Unix Introducing Privilege Manager for Unix Introducing Privilege Manager for Sudo Planning Deployment Installation and Configuration
Download Privilege Manager for Unix Software Packages Download Privilege Manager for Sudo Software Packages Quick Start and Evaluation Configure a Primary Policy Server Configure a Secondary Policy Server Install PM Agent or Sudo Plugin on a Remote Host Remove Configurations
Upgrading Privilege Manager 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 Unsupported Sudo Options Sudo Plugin Policy Evaluation About us

cwd

Description

Type string READONLY

cwd contains the pathname of the submit user's current working directory.

Example
# if command is executed from any directory other than under /usr, 
# change the working directory to /tmp 
if (cwd != "/usr" && !glob("/usr/*", cwd)) 
   runcwd = "/tmp";
Related Topics

runcwd

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

 

Related Documents