版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、*NIX系统平安系统平安曹鹏曹鹏 资深平安顾问,资深平安顾问,CISP, CCID平安专栏作家平安专栏作家东软东软NETEYE谋划部谋划部北京北京 caopengneusoft2003 Neteye. All rights reserved.Confidential Do Not Copy or Distribute四月 20034000SUID0040同组用户可写同组用户可写2000SGID0020同组用户可读同组用户可读1000“粘着位粘着位”0010同组用户可执行同组用户可执行0400属主可写属主可写0004其他用户可写其他用户可写0200属主可读属主可读0002其他用户可读其他用户可读
2、0100属主可执行属主可执行0001其他用户可执行其他用户可执行rootsmithers /etc# ls -al |moretotal 937drwxr-xr-x 32 root root 3072 Aug 31 11:07 .drwxr-xr-x 16 root root 1024 May 27 08:05 .-rw- 1 root root 0 May 25 08:22 .pwd.lock-rw-r-r- 1 root root 20 May 25 08:55 HOSTNAME-rw-r-r- 1 root root 42 May 25 12:56 MACHINE.SID-rw-r-r-
3、 1 root root 5468 Mar 29 1999 Muttrcdrwxr-xr-x 14 root root 1024 May 27 07:46 X11-rw-r-r- 1 root root 39 Jun 2 08:24 adjtime-rw-r-r- 1 root root 732 Apr 19 16:38 aliases-rw-r-r- 1 root root 16384 May 25 08:36 aliases.db-More-rw-r-r- 1 root root 1 Mar 21 1999 at.deny# chmod 600 at.deny-rw- 1 root roo
4、t 1 Mar 21 1999 at.deny 用命令用命令 chmod u-s file 可去掉可去掉file的的SUID位位accton /var/account/acctsa alastcommService NamePort NumberFTP21FTP Data20Telnet23SMTP (email)25HTTP (WWW)80HTTPS (Secure WWW)443# inetd.conf This file describes the services that will be available# through the INETD TCP/IP super server
5、. To re-configure# the running INETD process, edit this file, then send the# INETD process a SIGHUP signal.# Echo, discard, daytime, and chargen are used primarily for testing.# To re-read this file after changes, just do a killall -HUP inetd#echo stream tcp nowait root internal#echo dgram udp wait
6、root internal#discard stream tcp nowait root internal#discard dgram udp wait root internal#daytime stream tcp nowait root internal#daytime dgram udp wait root internal#chargen stream tcp nowait root internal#chargen dgram udp wait root internal#time stream tcp nowait root internal#time dgram udp wai
7、t root internal# These are standard services.#ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -l -atelnet stream tcp nowait root /usr/sbin/tcpd in.telnetdrootsmithers rc3.d# ls -a. S11portmap S40crond S55routed S60rusersd S85sound. S15netfs S45pcmcia S55sshd S60rwhod S90 xfsK30sendmail S20random S
8、50inet S60lpd S75keytable S91smbS05apmd S30syslog S50snmpd S60nfs S85gpm S99linuxconfS10network S40atd S55named S60rstatd S85httpd S99localrootsmithers rc3.d# 禁用启动脚本 改动脚本名,使他不以大写的S 开头Mon Nov 25 12:10:06 2002 error client 14 request failed: error reading the headersUseHostsAllowFile/UseHos
9、tsDenyFile 用用/etc/hosts.allow , /etc/hosts.deny来来作为允许作为允许/制止的地址列表制止的地址列表pop3(110)端口端口邮件客户端邮件客户端软件软件非加密衔接非加密衔接pop3(110)端口端口经过经过ssh客户客户端转发的本地端转发的本地端口端口(7755)邮件客户端软件邮件客户端软件:foxmailssh效力端口效力端口(22)ssh客户端软客户端软件件加密衔接加密衔接 Module 6: 了解系统入侵了解系统入侵如何知道系统曾经被入侵如何知道系统曾经被入侵相关记录用相关记录用#注释掉。注释掉。出并重新登录出并重新登录root,更改才干生效
10、。,更改才干生效。上面的命令制止上面的命令制止core files“core 0,限,限制进程数为制进程数为“nproc 50“,且限制内存运用为,且限制内存运用为5M“rss 5000。录,录,host.mydomain是登录这个目录的是登录这个目录的机器名,机器名,ro意味着意味着mount成只读系统,成只读系统,root_squash制止制止root写入该目录。最后写入该目录。最后为了让上面的改动生效,还要运转为了让上面的改动生效,还要运转/usr/sbin/exportfs -a 同时建议采用同时建议采用ssh替代替代telnet和和ftp-l每一个每一个ftp衔接都写到衔接都写到sysl
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 水利工程深基坑作业安全管控手册
- 汽修厂车辆水箱损坏维修更换工作手册
- 农业生物多样性保护实操手册
- 2026年克拉玛依市白碱滩区网格员招聘考试模拟试题及答案详解
- 山东省东营市胜利油田59中学2026年数学七年级第一学期期末统考试题含解析
- 眼镜加工员考试题及答案
- 2027届山东省菏泽市鄄城县三年级数学第一学期期末质量跟踪监视试题含解析
- 预防中暑考试题目及答案
- 2025-2026学年晏子使楚教学设计与指导
- 2025年汕头市濠江区教育系统招聘教师真题
- 2026年ASFC中级考试试题
- 合伙份额赠与协议书
- 红色广西课件
- 一次管网及换热站工程初步设计
- 糖尿病的应急护理
- 部队医院为兵服务课件
- 2025中煤新疆公司所属新能源公司面向中国中煤内外招聘技术人员6人考试参考题库及答案解析
- 中国历史文献学(第2版) 课件汇 第1-9课 绪论 -历史文献的阅读与检索
- 2025新外研社版七年级上英语单词汉译英默写表(开学版)
- 2025福建龙岩市“支企服务专员”招募10人考试参考题库附答案解析
- 2025至2030年中国附子种植行业市场运行现状及未来发展预测报告
评论
0/150
提交评论