Hey guys :rolleyes:
I did partition in my IBM and installed Ubuntu/Linux beside the Windows. It has been long time since i used the Linux and i forgot my Log in password for that partition of Linux, any idea how to reset it without removing the partition?
Please need your assistance :crying:
Thanks in advances,
Zahra.
3 replies to this topic
#1
Posted 24 December 2011 - 01:23 AM
|
|
|
#2
Posted 24 December 2011 - 02:32 AM
Hello Zahra and welcome.
Some modern kernels have simple single-user recovery modes that can be accessed from the bootloader menu. If you have GRUB or LILO, there should in fact be a recovery option where you can be displayed a root shell.
From there you can reset the password of root, or another user:
If there is no recovery item it will be a bit more involved, you will have to manually edit the kernel setting line to force it in to a single user mode. Let us see if the top applies first, however here is a well written guide to show you how to either way: Linux reset forgotten root password
Alexander.
Some modern kernels have simple single-user recovery modes that can be accessed from the bootloader menu. If you have GRUB or LILO, there should in fact be a recovery option where you can be displayed a root shell.
From there you can reset the password of root, or another user:
passwd <username>
If there is no recovery item it will be a bit more involved, you will have to manually edit the kernel setting line to force it in to a single user mode. Let us see if the top applies first, however here is a well written guide to show you how to either way: Linux reset forgotten root password
Alexander.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#3
Posted 24 December 2011 - 01:14 PM
Alexander when I displayed the Root shell again it gives me this "Give root password for maintenance (or type control-D to continue) and i did tpye "control-D" but seems it's stuck! The options actually that I have before entering the root, are the following:
resume
clean
dpkg
failsafex
grup
netroot
root
and I chose root then typed the commands! (in previous step!).
---------- Post added at 01:13 PM ---------- Previous post was at 01:11 PM ----------
I thought I already posted it previous post ,, sorry at first try it works and the passwords changed and i reboot it but when i tried to long in it doesn't allow me~!! I don't have any idea why... I have that Lunix (Recovery Mode) option ,,,
---------- Post added at 01:14 PM ---------- Previous post was at 01:13 PM ----------
In the post that in didn't display i "Thanked you" a lot for replying & welcome me here :rolleyes:lol
resume
clean
dpkg
failsafex
grup
netroot
root
and I chose root then typed the commands! (in previous step!).
---------- Post added at 01:13 PM ---------- Previous post was at 01:11 PM ----------
I thought I already posted it previous post ,, sorry at first try it works and the passwords changed and i reboot it but when i tried to long in it doesn't allow me~!! I don't have any idea why... I have that Lunix (Recovery Mode) option ,,,
---------- Post added at 01:14 PM ---------- Previous post was at 01:13 PM ----------
In the post that in didn't display i "Thanked you" a lot for replying & welcome me here :rolleyes:lol
#4
Posted 24 December 2011 - 01:40 PM
Try to type "passwd" in to the root shell again to change the root password instead, and try to reboot and use that password to log in as root. It should very well change the /etc/shadow file required to log in with a password.
All I can guess is that you have done so and logged in with another user rather than root which does not have the new password.
Glad I could provide some insight, this should work in nearly every case, however sometimes it is just not enough.
Alexander.
All I can guess is that you have done so and logged in with another user rather than root which does not have the new password.
Glad I could provide some insight, this should work in nearly every case, however sometimes it is just not enough.
Alexander.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









