Type string READONLY
The name of the command being run.
The command variable generally contains the full path name of the command being run. Use the basename() function to get the command name without the full path.
admincommands = {"hostname","kill","shutdown"}; if (basename(command) in admincommands) { runuser = "root"; accept; }
Type string READONLY
cwd contains the pathname of the submit user's current working directory.
# 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";
Type string READONLY
date contains the date the request was submitted in the form: YYYY/MM/DD.
if (pmshell) { # prints the date and time the shell was opened print( command + " started " + date + " "+ time ); accept; }
Type integer READONLY
day contains the day the request was submitted formatted as an integer in the range: 1–31.
if (command == "dailyadmin") { if (day == 1) { # first day of the month runcommand = "" } }
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Nutzungsbedingungen Datenschutz Cookie Preference Center