linux利用命令重置大量密码

时间:2021-04-21 12:39:53
 yum -y install expect
mkpasswd -l 10 -v was | grep 'is *'  >> 123.txt
mkpasswd -l 10 -v logv | grep 'is *'  >> 123.txt
mkpasswd -l 10 -v root | grep 'is *'  >> 123.txt 
#公司用
export http_proxy=10.251.26.83:3128
export https_proxy=10.251.26.83:3128
export ftp_proxy=10.251.26.83:3128
yum -y install expect
mkpasswd -l 10 -v root | grep 'is *' >> 123.txt
mkpasswd -l 10 -v was | grep 'is *' >> 123.txt
mkpasswd -l 10 -v logv | grep 'is *' >> 123.txt