发布时间:2013-11-27 11:07:05
1,mkdir /usr/local/proxycat proxy#!/bin/bashUser=$USERIp=${SSH_CLIENT%% *}Date="`date +%Y-%m-%d`"Logfile=/var/log/myaudit/${User}_${Ip}_${Date}.log#export Logfile=/var/log/myaudit/${User}_${Ip}_${Date}.logexport PROMPT_COMMAND='{ date "+%y-%m-%d %T ##### $(who am i |awk "{print \$1\" \"\$.........【阅读全文】
发布时间:2013-11-27 10:11:00
1,创建工作目录mkdir /usr/local/proxy/vi proxy#!/bin/bashTmpfile=`mktemp`User=$USERIp=${SSH_CLIENT%% *}Date="`date +%Y-%m-%d`"Logfile="/var/log/myaudit/${Date}_${User}_$Ip.log"exec /usr/bin/script -a -f -q $Logfile2 修改/etc/profilevi /etc/profile /usr/local/proxy/proxy3,ta.........【阅读全文】