linux下二次口令加固,保證系統(tǒng)安全 |
發(fā)布時(shí)間: 2012/8/19 16:24:29 |
[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
本文出自:億恩科技【1tcdy.com】 服務(wù)器租用/服務(wù)器托管中國五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] |