Simple ways to log user activity - 2024-06-20
	Simple and easily disabled (User can kill the processes)
PROMPT_COMMAND='history -a >(logger -t "[$USER] $SSH_CONNECTION")'Add this line to your pam configuartion for whatever service you'd like to track (All users). Also, the auditd service needs to be running.
session    required     pam_tty_audit.so enable=*session required pam_tty_audit.so disable=username,anotheruser enable=username log_passwdaureport --tty