码迷,mamicode.com
首页 > 系统相关 > 详细

linux下监控用户操作记录的工具

时间:2018-01-30 21:10:02      阅读:244      评论:0      收藏:0      [点我收藏+]

标签:rip   operation   监控   apt-get   bsd   code   操作   用户   opera   

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下监控用户操作记录的工具

标签:rip   operation   监控   apt-get   bsd   code   操作   用户   opera   

原文地址:http://blog.51cto.com/yangzhiming/2067023

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!