免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1404 | 回复: 0
打印 上一主题 下一主题

[系统管理] AIX System Security:4.Logging [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-11-07 09:55 |只看该作者 |倒序浏览
System tools:logcheck,logwatch

http://sourceforge.net/projects/swatchlog/

http://sourceforge.net/projects/sentrytools

1.Capture mesg send to syslog.

printf "### Following lines added by CISecurity \
AIX Benchmark Section 5.1\n\
auth.info\t\t/var/adm/authlog\n\
*.info;auth.none\t\t/var/adm/syslog\n" \
>> /etc/syslog.conf
touch /var/adm/authlog /var/adm/syslog
chown root:system /var/adm/authlog
chmod 600 /var/adm/authlog
chmod 640 /var/adm/syslog
stopsrc -s syslogd
startsrc -s syslogd

2.Configure syslogd to send logs to a remote loghost

printf "### Following lines added by CISecurity \
AIX Benchmark Section 5.2\n\
auth.info\t\t@loghost
*.info;auth.none\t\t@loghost
*.emerg\t\t@loghost\n\
local7.*\t\t@loghost\n" >> /etc/syslog.conf
stopsrc -s syslogd
startsrc -s syslogd

make sure the syslog system accept the mesg from other system:

chssys -s syslogd -a "-r"
stopsrc -s syslogd
startsrc -s syslogd

3.Enable sar accounting

4.Enable kernel-level auditing

audit on

To start auditing automatically at next boot:

mkitab -i cron "audit:2:once:/usr/sbin/audit start 2>&1 >
/dev/console"
telinit q
echo "audit shutdown" >> /usr/sbin/shutdown

5.Confirm Permissions On system log Files

for FILE in \
/smit.log \
/var/adm/cron/log \
/var/tmp/dpid2.log \
/var/tmp/hostmibd.log \
/var/tmp/snmpd.log \
/var/adm/ras/*
/var/ct/RMstart.log
do
if [ -f $FILE ]; then
echo "Fixing log file permissions on $FILE"
chmod o-rw $FILE
fi
done







本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4031/showart_196566.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP