• 请前往企鹅游戏网站 http://xpenguins.seul.org/ 下载 xpenguins-2.2.tar.gz 源代码文件,并安装该软件。安装完毕之后,请在 GNOME 图形接口执行 xpenguins , 看看有没有出现如同官网上面出现的小企鹅?(你有可能需要安装 yum install libX*-devel 才行喔)

情境仿真题部分:

[root ~]# ls /etc/{passwd,shadow,group} > important.file
[root@study ~]# find /usr/sbin /usr/bin -perm /6000 >> important.file

!/bin/bash

for filename in $(cat important.file)
do
md5sum $filename >> finger1.file
done

[root ~]# sh md5.checkfile.sh
[root@study ~]# chattr +i finger1.file

  • 通过相同的机制去创建后续的分析数据为 finger_new.file ,并将两者进行比对,若有问题则提供 email 给 root 查阅:

[root ~]# vim md5.checkfile.sh

!/bin/bash

[ -f finger_new.file ] && rm finger_new.file
for filename in $(cat important.file)
do
md5sum $filename >> finger_new.file
done

testing=$(diff finger1.file finger_new.file)
if [ "$testing" != "" ]; then
diff finger1.file finger_new.file | mail -s 'finger trouble..' root
fi

[root@study ~]# vim /etc/crontab
30 2 * root cd /root; sh md5.checkfile.sh