bash: mkpasswd: command not found...

发布时间 2023-07-23 23:58:49作者: 小鲨鱼2018

 

linux中 mkpasswd命令用于生成密码。

 

001、问题bash: mkpasswd: command not found...

[root@PC1 test02]# mkpasswd
bash: mkpasswd: command not found...

 

002、解决方法

[root@PC1 test02]# yum -y install expect

 

003、测试命令

[root@PC1 test02]# mkpasswd
0Vysf7Kl[
[root@PC1 test02]# mkpasswd
hq[9aR1dX
[root@PC1 test02]# mkpasswd -l 15
^zcysLse9wJne9x
[root@PC1 test02]# mkpasswd -l 15
&nb8efdmneWu0Ev
[root@PC1 test02]# mkpasswd -l 20
trK22burlFflnhshp>yu
[root@PC1 test02]# mkpasswd -l 20
TyadvghksHaxw0hy5sh{