Rooting a local box

Dave Smith dave at thesmithfam.org
Thu Apr 26 12:13:32 MDT 2007


Matthew Frederico wrote:
> We have a local box that needs some rooting to happen to it because 
> nobody
> knows the root password.

Boot a live CD, and do this:

mkdir /mnt/rooted
mount /dev/sda1 /mnt/rooted (replace sda1 with the partition that has 
your installed root partition on it)
cd /mnt/rooted
chroot /mnt/rooted
source /etc/profile
passwd (enter the new root password twice)
exit
reboot

That's what I do -- works like a charm. Most modern distros don't let 
you do the single user trick at the grub prompt anymore. Good luck!

--Dave



More information about the PLUG mailing list