Is there any way to get xterminal sessions to be captured by Direct Audit?
Applies to: Centrify Direct Audit for Unix/Linux on all platforms.
Question: Is there any way to get xterminal sessions to be captured by Direct Audit?
Answer: By default Xterm sessions are not audited as they do not launch an audited shell.
Xterm does not get the login shell information from getpwnam(). Instead, it tries to use the value of the shell variable SHELL. However, xterm can also accept the login shell as part of the command line.
Attached to this KB there is a shell script, xterm, that can be placed in a directory such as /usr/share/centrifydc/bin (or other paths that is ahead of /usr/bin). The script gets the value of the environment variable SHELL to set up the path to the DA shell. For example, if SHELL is /bin/bash, set up the string /bin/cda/bash. Then invoke /usr/bin/xterm and specify the audited shell as the parameter.
This will allow the Xterm session to be recorded via Direct Audit.