Place To Run Script Command For All User/sessions

Home » CentOS » Place To Run Script Command For All User/sessions
CentOS No Comments

Hi all, I would like to record user commands in terminal mode for remote supporters. I currently do that with the command “script – make typescript of terminal session”.

So far so good as long as I run a combo os screen/script at the command prompt, allow remote worker to control screen session and then at the end I do ctrl-d to save the script session.

This however do not work (or at least is not practical) when I want to allow someone to login via SSH directly and unattended.

What will be the place to insert “script” in order to call it for each login/logoff and sudo executions?

As an alternative for my fellow coworkers I have setup a Windows 10 PC
with putty and Teamviewer/AnyDesk on it. Remote supporters go into the Teamviewer/AnyDesk pc and then SSH using putty into the specified Linux box. Putty is setup as to record the entire session automatically. Linux boxes dont have GUI.

Linux Boxes are CentOS 7 x64 and only 3 are CentOS 8 x64.

Thanks for your comments.