SCIENTIFIC-LINUX-USERS Archives

April 2012

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Todd And Margo Chester <[log in to unmask]>
Reply To:
Todd And Margo Chester <[log in to unmask]>
Date:
Mon, 16 Apr 2012 09:47:27 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
On 04/16/2012 09:11 AM, Konstantin Olchanski wrote:
> On Mon, Apr 16, 2012 at 11:58:31AM +0530, vivek chalotra wrote:
>>
>> I have forgotten the root password of my main server having SLC 5.7. Kindly
>> let me know the easiest way to change or retrieve it.
>>
>
> Boot from installation CD into "rescue" mode, cd /mnt/sysimage/etc, vi shadow
> to reset the password string to "" (blank, no password).
>

Live CD works too.  You want to blank out the second hash.

Before:
    root:a-big-bunch-of-garble:15259:0:99999:7:::

After:
    root::15259:0:99999:7:::

I might have had to do this a few times myself.  Maybe.
I ain't saying. Maybe I accidentally capitalized the
first letter in the Root's password.  Perhaps.

-T

ATOM RSS1 RSS2