LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   " Urgent Help !!!! " Grub Password Change Script Required (https://www.linuxquestions.org/questions/linux-newbie-8/urgent-help-grub-password-change-script-required-930905/)

shiju.redhat 02-23-2012 01:08 PM

" Urgent Help !!!! " Grub Password Change Script Required
 
Hi All,

I would like to change my multiple redhat linux servers grub password with

default password, I would like to automate this via script, Any one can help

on this How can I write a script to automate this task


Regards

John P

ButterflyMelissa 02-23-2012 02:07 PM

One script that should (remotely) change the password of a server (or multiple servers), to a "default" password? I dont get it, because THAT action requires root access...and I strongly doubt that's possible remotely...
Secondly, is the security was set up properly, it may not even possible at all...

Could you expand somewhat on what you're trying to accomplisch? Thanks.

Thor

TB0ne 02-23-2012 02:16 PM

Quote:

Originally Posted by shiju.redhat (Post 4610292)
Hi All,

I would like to change my multiple redhat linux servers grub password with default password, I would like to automate this via script, Any one can help on this How can I write a script to automate this task

This is *NOT* 'urgent' for anyone here...we volunteer our time, so expecting us to hurry up because YOU need help quickly is fairly rude.

A very small bit of research turns up the "grub-md5-crypt" command. Run it, and give it a password (do this bit interactively). Take that output, then write your script to USE the crypted password. Enter the line
Code:

password –md5 <the md5 string from grub-md5-crypt>
before the line that reads: “BEGIN AUTOMAGIC KERNEL LIST” in grub.conf. That's it. If you need 'urgent' help writing a script, try any of the bash scripting tutorials you can easily find on Google. And, if you're using RedHat enterprise, call them...you are paying for support, right?


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