PDA

View Full Version : forgot root passwd?



pureone
02-21-2005, 11:04 PM
forgot root password but you was lucky enough to put your self in sudo? then its easy.


sudo su then type passwd. it will not ask you for your current password at all.

enjoy

johnb
02-24-2005, 05:14 AM
if you were not "lucky"
boot your live CD
mount drive partition (hda?)where knoppix is installed. Make writeable.
replace ? with partition number
Open a shell
become root by su
chroot /mnt/hda? passwd

johnb

mozkill
02-24-2006, 04:02 AM
to make it a million times easier, couldnt you just type "KNOPPIX 1" at the boot prompt, to get into single user mode and then just change the password with the password command? doh!