Results 1 to 8 of 8
my buddy forgot his root password (single home desktop) is there a way for him to get it back? or should he just rebuild his system?...
- 02-07-2008 #1
forgot root password
my buddy forgot his root password (single home desktop) is there a way for him to get it back? or should he just rebuild his system?
please click my minicity!
or its industry more or even its roads
Everyone is immortal until the day they die.
Registered Linux user #462038
- 02-07-2008 #2Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
Boot off a LiveCD, mount the root (/) filesystem, delete the encrypted root password out of /etc/shadow.
Reboot and boot off the HDD. The root account will not have a password.
- 02-07-2008 #3
Or
Boot up in Single User Mode and execute passwd command. Assign new root password. It wont ask of earlier password.
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 02-07-2008 #4
how do i boot in single user mode?
please click my minicity!
or its industry more or even its roads
Everyone is immortal until the day they die.
Registered Linux user #462038
- 02-07-2008 #5Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
Man, I never use single user mode except in Solaris....and that requires the root password. I *never* remember this for Linux...
Google => Linux Single User Mode Passwdhow do i boot in single user mode?
- 02-07-2008 #6
i feel like my computer is naked after reading that rticle
please click my minicity!
or its industry more or even its roads
Everyone is immortal until the day they die.
Registered Linux user #462038
- 02-07-2008 #7
I felt the same way after discovering how easy it was to reset the root password. Many people set a password for the bios and for grub to increase the security, butI think if anyone has physical access to your machine, they can always find ways to compromise it if they wish.
- 02-08-2008 #8
Another good one just to round out the field:
Upon boot edit the boot options:
For LILO
"linux init=/bin/bash"
or add it to the Grub "kernel" line
It will give a prompt earlier at which you can use passwd for root. (after remounting -rw)Linux since: 2001
Gentoo since: 2004
- - - - - - - -
Translation:
I fix things until they break.


Reply With Quote

