免费注册 查看新帖 |

Chinaunix

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

[新手入门] Securing AIX 5L from Scratch<zt> [复制链接]

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-12-27 13:03 |只看该作者 |倒序浏览
今天在网上看到的,虽然是有一点老。但是还是很不错的。有一定的借鉴作用:)



Many documents are written to describe how to secure a UNIX-based server. Not very many are written to deal with AIX, and the ones that are are somewhat vague and seem to require a lot of knowledge of the OS. It has been my experience that people with a lot of knowledge of the OS already know how to secure the machine. Plus I like checklists for securing things.

This document assumes you know SOMETHING about AIX & UNIX, and can handle installing the OS from scratch (real tough -- boot from CD, watch status for a while, reboot).

I used AIX 5L 5.1 to build this. Just FYI. These steps aren't necessarily in any sort of order, but if you get to the end you'll be okay. You can do a lot of this through SMIT, but I list the command line options here.

STEP 1

Once you're staring at the initial system configuration menu, assign a decent root password. Configure TCP/IP communications but then pull the machine off the network, unless you are absolutely sure your network is safe & sound (twelve year old haX0r free).

STEP 2

Change the filesystem sizes to something useful. The defaults are small and that's fine, but they do not leave much room to work. Obviously you can adjust these as you'd like.

/usr/sbin/chfs -a size='262144' /
/usr/sbin/chfs -a size='262144' /var
/usr/sbin/chfs -a size='524288' /tmp
/usr/sbin/chfs -a size='524288' /home

STEP 3

Alter /etc/security/login.cfg to change the console herald. Add the folloing line in the "default" section:

herald = "rn** UNAUTHORIZED ACCESS PROHIBITED **rnlogin: "

STEP 4

Change the properties of sys0 so that it limits the number of processes a user can have:

/usr/sbin/chdev -l sys0 -a maxuproc='4096'

If you're on a machine that supports CPU Guard, or dynamic CPU deallocation, turn that on. It is not on by default. This isn't really a security feature but you'll find out the hard way if its off:

/usr/sbin/chdev -l sys0 -a cpuguard='enable'

STEP 5

Shut NFS server services off:

/usr/sbin/rmnfs -B

STEP 6

Disable just about everything in /etc/inetd.conf.

STEP 7

Increase syslogging.

mail.debug /var/adm/maillog
mail.none /var/adm/maillog
auth.notice /var/adm/authlog
lpr.debug /var/adm/lpd-errs
kern.debug /var/adm/messages
*.emerg;*.alert;*.crit;*.warning;*.err;*.notice;*.info /var/adm/messages

STEP 8

Disable services in /etc/rc.tcpip.

STEP 9

Set user password defaults.

STEP 10

Add an /etc/ftpusers file.

Change the FTP banner to not show the OS information.

STEP 11

Disable some network-based attacks.

STEP 12

Install SSH, sudo, TCP wrappers.

原文来自:

http://bob.plankers.com/other/aix/securing.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP