作者:小贤少_129 | 来源:互联网 | 2017-11-10 15:34
文章标题:linux下二次口令加固,保证系统安全。Linux是中国IT实验室的一个技术频道。包含桌面应用,Linux系统管理,内核研究,嵌入式系统和开源等一些基本分类
[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
#======================================