unix

How do I set up an encrypted password for my Linux server’s kickstart config?

To encrypt your root password for use in a Kickstart config, you can use a command like this:

perl -e ‘print crypt(“newpasswd”, “Xa”) . “\n”;’p

Where newpasswd is your new password and Xa is your salt characters which can be replaced with any 2 alphanumeric characters.

# perl -e ‘print crypt(“Fisvacvift”, “09”) . “\n”;’p
092vXPFWXT4Ts

In your kickstart config, your new line would look like this:

rootpw –iscrypted 092vXPFWXT4Ts

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top