coffiner's Blog

布施,持戒,忍辱,精进,禅定,大智慧.

Linux操作系统下防范黑客的一些实用技巧

coffiner posted @ Dec 05, 2008 06:10:13 PM in 未分类 with tags 实用技巧 , 2661 阅读

 

Linux是一个多用户的系统,一旦人家取得你的root用户之后,他就可以在你的系统上为所欲为了,由于单用户对系统有完全的控制权限,如果操作不当或被他人进入,那么后果将不堪设想,如何防止入行单用户了,有以下几个注意的方面。

  1、对/etc/inittab文件进行保护,如果把id:3:initdefault中的3改为成1,就可以每次启动直接进入到单用户方式。对/etc/inittab文件,以root身份进入通过chown 700 /etc/inittab把属性设为其它用户不能修改就行了。

  2、如果是使用的lilo方式进行引导,可能通过linuxconf或直接修改lilo.conf把引导时等待输入时间设置为0或最短时行。这种情况下,如果进入单用户方式,可以用软盘进行引导。

  3、如果使用是GRUB方式进行引导,最简单的方法是使用GRUB密码,对启动选项进行保护。

  4、为了防止他人远程进行破坏,使系统重启,除了对ROOT的密码和/etc目录下的文件进行有效管理之外,还应当对CMOS进行密码设置,这样即使把系统改成单用户方式了,也无法直接的启动计算机进行操作。  (责任编辑:董建伟)

Avatar_small
Emma 说:
2022年12月23日 16:07

"Preventing hackers in Linux is a constant and ongoing task. Here are some practical tips to help keep real estate professional Baytown your system safe: 1. Keep your system up to date. Security patches are released regularly to fix vulnerabilities in the Linux kernel and other software 2. Use a firewall. A firewall can help to protect your system from outside attacks 3. Use strong passwords. "


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter