728x90
mkpasswd 명령
$ mkpasswd
-bash: mkpasswd: command not found
expect 패키지 설치(mkpasswd 명령)
$ yum install -y expect
$ which mkpasswd
/usr/bin/mkpasswd
사용법
usage: mkpasswd [args] [user]
where arguments are:
-l # (length of password, default = 9)
-d # (min # of digits, default = 2)
-c # (min # of lowercase chars, default = 2)
-C # (min # of uppercase chars, default = 2)
-s # (min # of special chars, default = 1)
-v (verbose, show passwd interaction)
-p prog (program to set password, default = /bin/passwd)
$ mkpasswd -l 24
ayelvdhbiqiexh1kp0Fyx?kO
728x90
'리눅스' 카테고리의 다른 글
[리눅스] elasticsearch 클러스터 구성에서 인덱스 생성 (0) | 2021.12.02 |
---|---|
[리눅스] HAProxy 패스워드 설정 (0) | 2021.12.02 |
[Linux] How to build and push Docker images with GitHub Actions (0) | 2021.11.30 |
[Kafka] Installing a package to use the Kafka command(kafka-topics.sh) (0) | 2021.11.30 |
[Kafka] Check the Kafka(Broker) ZooKeeper version (0) | 2021.11.30 |