LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 02-23-2012, 01:08 PM   #1
shiju.redhat
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
" 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
 
Old 02-23-2012, 02:07 PM   #2
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,238
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
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
 
Old 02-23-2012, 02:16 PM   #3
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,548

Rep: Reputation: 2815Reputation: 2815Reputation: 2815Reputation: 2815Reputation: 2815Reputation: 2815Reputation: 2815Reputation: 2815Reputation: 2815Reputation: 2815Reputation: 2815
Quote:
Originally Posted by shiju.redhat View Post
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?
 
  


Reply


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
Tried to Install Flash Plugin but says "Authenticating as Root" password required David Underhill Linux - Laptop and Netbook 5 11-05-2009 06:36 AM
Urgent : GRUB loading, please wait... then appear "Error 15" Mr.Newbie Linux - Newbie 9 10-24-2008 07:56 PM
Urgent : GRUB loading, please wait... then appear "Error 15" Mr.Newbie Slackware - Installation 5 10-23-2008 03:31 PM
"URGENT" Unable to boot into windows from GRUB cyberspeedjunkie Linux - Newbie 10 02-02-2008 05:40 PM
grub list "MZ" for my windows boot "Help on Change" davimint Linux - Newbie 2 01-26-2006 07:22 AM


All times are GMT -5. The time now is 12:36 AM.

Main Menu
Advertisement
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