首页 运维 网络学院 查看内容

linux下二次口令加固,保证系统安全

2010-9-3 16:28 596 0

摘要:     [root@gao ~]# pwd     /root     [root@gao ~]# cat...
关键词: nbsp bashrc name root alias xiaoming date echo then definitions

    [root@gao ~]# pwd     /root     [root@gao ~]# cat .bashrc     # .bashrc     # User specific aliases and functions     alias rm='rm -i'     alias cp='cp -i'     alias mv='mv -i'     # Source global definitions     if [ -f /etc/bashrc ]; then     . /etc/bashrc     fi     #======================================     read -p "Input your name: " name     if [ $name == "xiaoming" ];then     echo "Hello xiaoming"     date=`date`     echo "$name $date" > /root/login.txt     else     exit     fi     #======================================
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部