echo “警告:你的地址为$fhq禁止非法登录!”
exit
fi
case “$0” in
-sh | -rsh | -ksh | -rksh | /etc/profile)
[“X$HUSHLOGIN” !=“XTRUE”] && [ -s /etc/motd ] && {
trap : 1 2 3
echo “”# skip a line
cat /etc/motd
trap “”1 2 3
}
if [“X$HUSHLOGIN”!=“XTRUE”]
then
[ -x /usr/bin/mail ] && { # if the program is installed
[ -s “$MAIL”] && echo “\you have mail”
}
if [“$LOGNAME”!=“root”-a -x /usr/bin/news ] # be sure it's there
then news -n
fi
fi
;;
-su)
:
;;
esac
trap 1 2 3
(4)创建/etc/.safe文件,加入允许登录的计算机的IP地址,一个地址占一行,格式如下所示
(195.1.2.3)
(194.10.2.4) |