In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
What this article shares to you is about how Linux randomly generates password mkpasswd, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Mkpasswd is a gadget that can produce passwords randomly. It is very convenient to use. It is not available by default. Install it with yum.
[root@ip-172-31-29-22] # yum install-y expect
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
Dockerrepo | 2.9 kB 00:00:00
Rhui-REGION-client-config-server-7 | 2.9 kB 00:00:00
Rhui-REGION-rhel-server-releases | 3.5 kB 00:00:00
Rhui-REGION-rhel-server-rh-common | 3.8 kB 00:00:00
(1x2): rhui-REGION-rhel-server-releases/7Server/x86_64/updateinfo | 2.4MB 00:00:00
(2ap2): rhui-REGION-rhel-server-releases/7Server/x86_64/primary_db | 46 MB 00:00:01
Resolving Dependencies
-> Running transaction check
-> Package expect.x86_64 0RU 5.45-14.el7_1 will be installed
-> Processing Dependency: libtcl8.5.so () (64bit) for package: expect-5.45-14.el7_1.x86_64
-> Running transaction check
-> Package tcl.x86_64 1 8.5.13-8.el7 will be installed
-> Finished Dependency Resolution
Dependencies Resolved
=
Package Arch Version Repository Size
=
Installing:
Expect x8631 64 5.45-14.el7_1 rhui-REGION-rhel-server-releases 262k
Installing for dependencies:
Tcl x86x 64 1purl 8.5.13-8.el7 rhui-REGION-rhel-server-releases 1.9m
Transaction Summary
=
Install 1 Package (+ 1 Dependent package)
To generate the password,-l is the length of the password to be generated,-s contains several special characters,-d contains several numbers,-c is the number of lowercase characters, and-C is the number of uppercase characters.
[root@ip-172-31-29-22] # mkpasswd-l 20-s 4-d 3-c 3-C 3
XgVYfo.pyrogen 0ncy 3hE1% et
This is how Linux randomly generates the password mkpasswd. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.