快捷搜索:   nginx

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

  #======================================

顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论