IT猫扑网文章教程

分类分类

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

2015-06-28 00:00作者:网管联盟

  [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

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

展开全部

相关文章

说两句网友评论
    我要跟贴
    取消