Link to home
Start Free TrialLog in
Avatar of patp22
patp22Flag for United States of America

asked on

CENTOS 5.3 root password reset - Help!

Greetings:

Client has Centos 5.3 Linux.  Root password is lost

I read the link that shows how the password can be reset
http://www.centos.org/docs/5/html/Installation_Guide-en-US/ch-rescuemode.html

When I go to the website, I can't find 5.3 distro, instead only 5.6 available
http://centos.bulkbookstore.com/5.6/isos/i386/

If I download the iso under the above link named  " CentOS-5.6-i386-LiveCD.iso"
and burn the iso and boot with that cd, will I be able to reset the root password?

Or is there another way of resetting the password.   Thanks/Pat
Avatar of Kerem ERSOY
Kerem ERSOY

Definitely yes.
Jusyt boot it in rescue mode (i.e., linux rescue in the boot: prompt)

mount your filesystem..

go to shell

either edit your /mnt/filesystem/etc/shadow and remove the root password between colons
or just chroot to the mounted system and issue passwd command
then you're good to go.

Cheers,
K.
SOLUTION
Avatar of farzanj
farzanj
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of patp22

ASKER

thanks, i will try and report back
BTW there's no difference on using 5.3 or 5.6 disk. They will all recognize and be able to mount your file system.

After you've recover your password I'll suggest you to upgrade to the latest version using yum update.