Originally Posted by shiju.redhat
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
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?