1. 程式人生 > >linux下監控用戶操作記錄的工具

linux下監控用戶操作記錄的工具

linu rep get 監控 apt chm play duti roo

linux下監控用戶操作記錄的工具:

apt-get install bsdutils

mkdir /opt/operation_log

chmod 777 -R /opt/operation_log

vi /etc/profile

exec script -t 2> /opt/operation_log/$USER-$UID-date +%F-%T.data -a -q -f /opt/operation_log/$USER-$UID-date +%F-%T.log

:wq

source /etc/profile

操作記錄回放:

scriptreplay /opt/operation_log/root-0-2018-01-30-20\:11\:29.data /opt/operation_log/root-0-2018-01-30-20\:11\:29.log

linux下監控用戶操作記錄的工具