How to generate a rootpw password in Linux kickstart

Source: Internet
Author: User
Tags crypt

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.