Results 1 to 10 of 14
What can I do to recover root password if I forget it....
- 01-04-2005 #1Just Joined!
- Join Date
- Dec 2004
- Posts
- 3
forgot root password
What can I do to recover root password if I forget it.
- 01-04-2005 #2
well, you can always:
1)boot a livecd like gentoo, knoppix, etc.
2)become root on the livecd
3)mount your hard drive
replacing hda1 with the appropriate drive and mountpointCode:mount /dev/hda1 /mnt/hda1
4)chroot into your linux distro's environment
replacing hda1 with the correct mountpointCode:chroot /mnt/hda1 /bin/bash
5)then do:
and whabam you should be setCode:passwd
-lakerdonald
- 01-05-2005 #3
Or you can boot into single-user mode. On grub do this by appending 'single' to the kernel line. This puts you directly into root without a password. All the more reason to password-protect grub.
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
- 01-05-2005 #4Linux Engineer
- Join Date
- May 2003
- Location
- Greece / Athens
- Posts
- 1,169
this is definately problem cause if you reboot a server and someone types that gets full access....
Linux For Ever!
- 01-05-2005 #5thats why physical access to any machine must be protected if the machine is important, like a server. Mac OSX is just as easy to crack into. XP you need boot media, but with physical access anything is possible
Originally Posted by stathisx
- 03-24-2005 #6Just Joined!
- Join Date
- Dec 2004
- Posts
- 3
Qt Designer - Segmentation fault
I am doing a project using Qt and postgreSQL. While opening some forms segmentation fault occur some times. What may be cause and How can I solve the problem. Please help.
Hasan C. C.
- 03-25-2005 #7Linux User
- Join Date
- Feb 2005
- Posts
- 290
i think we should have a sticky post about how to recover root password
- 03-27-2005 #8Linux User
- Join Date
- Oct 2004
- Location
- Serbia&Montenegro
- Posts
- 281
You can always hack yor box
Linux registered user #358842
Human knowledge belongs to the world.
- 09-22-2005 #9Just Joined!
- Join Date
- Apr 2004
- Posts
- 10
just go to
shadow
remove encrupted passwd
sample
root:$1$dN/PzhOV$de.3Uja9QwQElWnhgVcyP.:12298:0:99999:7:::
root::13046:0:99999:7::: (with out password)
- 09-23-2005 #10Just Joined!
- Join Date
- Sep 2005
- Location
- INDIA
- Posts
- 9
Re: forgot root password
on the grub interface highkight ur linux distro
Originally Posted by hasanceecy
press 'e' on the key board
u will be taken to the sub menu
here select the line that starts with the word kernel and hit 'e' again
the line will now appear in editable mode
donot delete anything from the line... go to the end of the line and add '1' without the quotes to it
"kernel ***** ro root=LABEL=/ 1"
hit enter
now u will be taken back to the sub menu
now press 'b'
u will be booted in single user mode and dropped down to a shell
now type at the shell
#passwd -d root
this will remove old password of root
now type
#passwd root
Enter new password: ****
Confirm: ****
this will give u a new password for root user
now type
#init 3
u will be taken to the root login
now login with ur new password for user root


Reply With Quote