-l # (length of password, default = 7) 指定密码的长度,默认是7位数-d # (min # of digits, default = 2) 指定密码中数字最少位数,默认是2位-c # (min # of lowerca...
分类:
其他好文 时间:
2015-02-13 09:14:11
阅读次数:
122
IfyouhavelostorforgotrootpasswordofRHEL7,youcanfollowthissteptochangetoanewpassword,thisisdifferentwiththeRHEL6single-usermode,1,pressebuttoninGRUB2bootscreen.2,attheendofLinuxlineaddinit=/bin/shandremove‘rhgb‘and‘quiet‘3,Ctrl+xtobootthesystemwiththeparamet..
分类:
系统相关 时间:
2014-11-19 16:17:45
阅读次数:
165
Ifyouhavelostorforgotroot
passwordofRHEL7,youcanfollowthissteptochangetoanewpassword,
thisisdifferentwiththeRHEL6single-usermode,1,pressebuttoninGRUB2bootscreen.2,attheendofLinuxlineaddinit=/bin/shandremove
‘rhgb‘and‘quiet‘3,Ctrl+xtobootthesystemwiththepara..
分类:
其他好文 时间:
2014-10-01 01:04:40
阅读次数:
369
#!/bin/bashforipin`catiplist.txt`dopwd=`mkpasswd-l12-s0-C0`grep-q$ip/root/pwd.log&&passwd=$(grep$ip/root/pwd.log|cut-d:-f2)||passwd=123456expect-c"spawnsshroot@$ippasswdexpect{\"*yes/no*\"{send\"yes\r\";exp_continue}\"*password*\"{send\"$passwd\r\";..
分类:
其他好文 时间:
2014-09-11 19:33:52
阅读次数:
237
mkpasswd依赖于expectyuminstallexpectmkpasswd密码生成工具直接执行mkpasswd,就会生成一个密码看一下参数:-l生成密码长度,默认是7位-d密码中最少数字位数,默认2位-c密码中最少小写字母的个数,默认2位-C密码中最少大写字母的个数,默认2位-s密码中最少特殊字符的个数,默认..
分类:
其他好文 时间:
2014-09-11 15:30:14
阅读次数:
1013
using System;using System.Collections.Generic;using System.Linq;using System.Text;using WindowsFormsApplication3.FormPage.UserMode;namespace WindowsFo...
分类:
其他好文 时间:
2014-07-24 05:04:38
阅读次数:
292
很早写的,最近别人问过一次,贴出来吧。#!/bin/bash
#
source/etc/profile&>/dev/null
basedir=$(cd`dirname$0`;pwd)
nowmonth=`date+%m`
nowday=`date+%d`
email="$basedir/email/sendemail.sh"
functionGaiMiMa(){
user="$1"
passwd=$(/usr/bin/mkpasswd-l20-d5-c2-C..
分类:
其他好文 时间:
2014-05-07 22:26:08
阅读次数:
951