Full Disclosure mailing list archives

Re: Root password change


From: Michael Holstein <michael.holstein () csuohio edu>
Date: Thu, 30 Mar 2006 13:11:55 -0500

if you're chrooted under /tmp (as it sounds from your email) you're out of luck, unless you have a way to escape the chroot due to a misconfiguration of that environment in the first place.

Easiest way to reset a lost UNIX password is boot from a "live CD" (eg: knoppix) .. mount the / partition of your hard drive (eg: mnt -t ext2 /dev/hda1 /mnt) then do "chroot /mnt" and execute "passwd root" from in there.

Then exit the chroot, umount /mnt, and reboot.

Viola'

Cheers,

Michael Holstein CISSP GCIA
Cleveland State University

Mockbee, Tom wrote:
I am logged in as a regular user but have root permission in the tmp directory through a different shell. I am stuck as to what is my next move to be able to change the root users password to one I know. Any help?

Tom


------------------------------------------------------------------------

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/


Current thread: