mkpasswd 随机密码生成

时间:2022-05-06 20:51:20
root@op-admin:~# mkpasswd  -l  -n
usage: mkpasswd [args] [user]
where arguments are:
-l # (length of password, default = )
-d # (min # of digits, default = )
-c # (min # of lowercase chars, default = )
-C # (min # of uppercase chars, default = )
-s # (min # of special chars, default = )
-v (verbose, show passwd interaction)
-p prog (program to set password, default = passwd)
root@op-admin:~# for x in {..};do mkpasswd -l ;done
lxia2lWCb-v4
hzr<frP3ea1M
e3TytyjbxR6\
x<kq85bfUljJ
ysQ-8ml7hKyj