Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
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.