[TriLUG] best way to hack root...

Alan Porter porter at trilug.org
Thu Feb 21 14:07:25 EST 2013


> I can "su" as I have the system
> auto-logging into my user account.

"su" requires root's password (which you don't know).
"sudo" requires YOUR password (which you also don't know).

In this situation, I boot using a liveCD or liveUSB, then mount the root 
filesystem and edit /mnt/etc/shadow, removing the encrypted password for 
root or the user in question.  Reboot and log in using your now-empty 
password.

-- 
# Alan Porter





More information about the TriLUG mailing list