General
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to boot Linux again, if one messes with root

Deepak_5
Advisor

Is there a way to boot Linux again, if one messes with root

Hi,

Is there a way to boot Linux again, if one changes the uid of root to something other than 0?

If anyone has an idea, please let us know.
This machine has shut down and could not be
brought back up again.

Thanks and Regards
Deepak
2 REPLIES
Vincenzo Restuccia
Honored Contributor

Re: Is there a way to boot Linux again, if one messes with root

Two ways:
1) boot in single user mode:
lilo>tab>linux single
2) boot with cdrom in single user mount your disk (mount /dev/hda1 /mnt) vi /mnt/etc/passwd change id root,(cd of Slackware 7 is good for it)
Mark Fenton
Esteemed Contributor

Re: Is there a way to boot Linux again, if one messes with root

If you had created a rescue/boot floppy when you installed your linux box, you could use that.

The key here is to somehow get to single user mode and correct the error.