Discussion Locked

Forget My Admin & User password

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Dear wizards of linux out there please help me with my problem.I have linux 7.0 installed on my computer.I had installed it 3 months ago & gave it some pass word for admin & user.In between i was out of station & so was not able to use my computer.When i have returned back, i am facing one great problem.I have forgot my Admin password & also user password ( I think i also have forgot the user login too..!!)what will i do for it.Has any one any suggestions for me .Please help me because i do notwish to reinstall my computer.
please contact with your suggestions on abhijeet_bhurke@hotmail.com

9 replies

by shadowofthefallen

boot to a linux floppy and mount the locked-down drive as read/write. Then call "passwd root" and change the password. If this doesn't work, just encrypt the new password and push it into place in the /etc/shadow file. If /etc/shadow is overwritten upon booting the system, reboot with the floppy and track down the template that is used to overwrite the shadow file. If it still gives you problems, try modifying the file then setting "chattr +i /etc/shadow".

by steve cody

This method should be the simplest to follow... But, it only works if you are using LILO boot manager.

At the LILO prompt, during bootup, before the system starts loading your main linux kernel, type this:

linux single

If that works, then your system will start in Single User mode. You can then change your root password with:

passwd root
or
passwd yourotherusername

Good luck,
Steve Cody

by cagandhi

don't worry.
just reboot your system.
on the boot prompt,
i mean, at the LILO: prompt
write linux single
like
LILO: linux single
so it will boot linux in single user mod.
i mean u will directly get $ OR # prompt, with root authority. just give the command chpasswd
like
chpasswd mynewpassword

Finish.
done.
give command init0 (init(zero))
it will shutdown. again reboot the system. use new passwod for the root login. u can.
again change the root password now. so it will impect on your all installed modules & it will update the access controllist with new password.
ok
good luck.
chirag gandhi.

This discussion is closed to new replies.