天天看点

40.mkpasswd生成命令

[root@localhost ~]# yum install -y expect

生成随机密码

mkpasswd 【参数】

-l 指定长度

-s 指定多少个特殊字符