LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-25-2013, 03:20 PM   #1
Rogue45
Member
 
Registered: Jun 2012
Posts: 47

Rep: Reputation: Disabled
How to use an encrypted sha-512 bootloader password in Kickstart script ?


How does one use an encrypted sha-512 password in kickstart?
I was trying: bootloader --location=partition --iscrypted $6mysha512hashredacted. --append="rhgb quiet audit=1"
but when the install finishes no password is applied. The only solutions I have found are to apply the password after the installation. Surely there is a way to do it in my kickstart script.
 
Old 05-02-2013, 12:52 PM   #2
Rogue45
Member
 
Registered: Jun 2012
Posts: 47

Original Poster
Rep: Reputation: Disabled
I figured i would post the answer to my own question. My problem lied in how my password was being parsed. Every time it came to a "$" in my password hash it treated it as a variable. There were multiple solutions. I could "\" to escape each $, or move the whole line out of my if statement and up where anaconda could parse it correctly without needing the escape character. I went with the latter. The format for RHEL 6 was poorly documented by RHEL, but here is my working solution i ended up with. Obviously i took out my hash.

bootloader --location=partition --iscrypted --password=$6$IMtherestofmyhash --append="rhgb quiet"

---------- Post added 05-02-13 at 12:52 PM ----------

I wish i could give myself rep points.

Last edited by Rogue45; 05-02-2013 at 12:53 PM.
 
  


Reply

Tags
kickstart


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizable encrypted LVM requiring just one password on boot (encrypted volume group)? Nyyr Linux - Software 9 01-24-2013 05:52 AM
Hashing multiple user:password combinations (sha) Jean-Luc Besson Linux - Software 5 12-28-2011 06:28 AM
users who have never changed their password from /etc/sha catalint Programming 1 05-18-2011 08:17 AM
Off-the-Record plugin, SHA-1 or SHA-2? madbullet Linux - Security 1 06-21-2010 09:28 AM
SHA-256 encryption algorithm in Action Script 3 kazuni Programming 1 11-24-2009 05:46 AM


All times are GMT -5. The time now is 12:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration