In Linux KickStart, The rootpw password can use plain text or encrypted values (the password is ippbxadminroot)
Note: The encrypted value must be used here, otherwise the security will be too low.
Rootpw -- iscrypted $1 $ ippbxadm $ qlbcgdsck/a.1zzfek/mt.
The encrypted value is read, but how is this value generated?
This is the same as the password shadow in Linux. The generation method is as follows:
Perl-e 'print crypt ("ippbxadminroot", Q ($1 $ ippbxadm), "\ n "'
When special characters are used, for example, the @ $ character must be prefixed with \, for example, \ @ \ $. Otherwise, the encrypted string will be incorrect;
# Ippbxadminroot indicates the password to be set for the user. $1 $ ippbxadm is a custom string. Generally, $1 $ is followed by 8 characters in shadow.
The style of the generated password string is as follows:
$1 $ ippbxadm $ qlbcgdsck/a.1zzfek/mt.
There is a $ in the middle. The preceding value is salt, and the encrypted value is called hash together.
Crypt uses des by default.Algorithm
If salt starts with $1 $, the MD5 algorithm is used.
The DES algorithm command is as follows:
Perl-e 'print crypt ("ippbxadminroot", "/g"), "\ n "'
The style of the generated password string is as follows:
/G5fpec81o2b2