linux下二次口令加固,保证系统安全
时间:2023-07-03 05:03:43 点击:271

  [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

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

展开 ↓

最新游戏更多

最新软件更多

  • 玩家推荐
  • 游戏攻略

峰溢下载站 Copyright(C) 2008- ytdonghua.net All Rights Reserved!

闽ICP备2023006282号-2| 免责声明