In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Introduction: in the Linux system, we want to generate a password manually. We can use opensll passwd to generate a password as the password for the user's account. The passwords in the Linux system are stored in the / etc/shadow file and are stored in an encrypted way. According to the different encryption methods, the number of digits of the encrypted passwords generated is also different.
The function of openssl passwd is to calculate the password hash in order to prevent the password from appearing in clear text.
Syntax format: openssl passwd [option] passwd
The common options for openssl passwd are as follows:
-1: indicates that MD5 encryption algorithm is used.
-salt: specify a salt value and do not use randomly generated salt. When using the encryption algorithm to encrypt, even if the password is the same, the salt is different, the calculated hash value is not the same, unless the password is the same, the salt value is the same, the calculated hash value is the same. The salt is an 8-byte string.
Example:
[tom@localhost] $openssl passwd-1-salt '12345678' # # Note '12345678' is not the password but the length of the password
Password: # # the password is entered here
$1 $12345678 $1qWiC4czIc07B4J8bPjfC0 # # this is the generated ciphertext password
# # manually add the generated password string to / etc/shadow and it can be used as the login password of the user.
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.