发布时间: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.........【阅读全文】
发布时间:2013-05-13 17:03:52
#!/bin/shpasswd -l xfspasswd -l newspasswd -l nscdpasswd -l dbuspasswd -l vcsapasswd -l gamespasswd -l nobodypasswd -l avahipasswd -l haldaemonpasswd -l gopherpasswd -l ftppasswd -l mailnullpasswd -l pcappasswd -l mailpasswd -l shutdownpasswd -l haltpasswd -l uucppasswd -l operator.........【阅读全文】
发布时间:2013-05-09 10:49:19
1,安装psacct m –y install psacct2启动服务/etc/init.d/psacct start3,激活进程审核touch /var/log/pactaccton /var/log/pact[root@localhost ~]# ac total 324.67[root@localhost ~]# ac -p root &n.........【阅读全文】
发布时间:2013-05-09 10:20:47
操作系统:Centos 6.0软件版本:Nessus-4.4.1-es6.i686.rpm下载地址:http://www.nessus.org/products/nessus/nessus-download-agreement1, 下载2, 安装Nessus-4.4.1-es6.i686.rpm[root@localhost ~]# rpm -ivh Nessus-4.4.1-es6.i686.rpmPreparing... &nb.........【阅读全文】