[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: root entry commented



On Wed, Mar 19, 2003 at 06:17:40PM -0500, Haijin Yan wrote:
> Hi, Jan,
>   Thank you very much for your help. I am using grub and how do I get the
> boot: prompt so that I can input linux init=/bin/bash ?

IIRC there are two ways. You can enter command mode and entetr all
commands manually (done with `c' key in menu) or you can press `e' on
a selected menu item, which will let you modify individual entries. So
you find the one with kernel image name and arguments and add
init=/bin/bash at the end. `b' will then boot the modified item.

> Thanks,
> 
> 
> -Haijin
> 
> On Wed, 19 Mar 2003, Jan Hudec wrote:
> 
> > On Wed, Mar 19, 2003 at 01:01:20PM -0500, Haijin Yan wrote:
> > > Hi,
> > >   I have a stupid question here. When I setting up NIS on my Linux box,
> > > I mistakenly commented out the root entry in the local passwd file.
> > > so now I can not do anything whenever root priviledge is required because
> > > there is no root in my linux.
> > >   Do you have any idea how to reinstall root from this case?
> >
> > Boot with init=/bin/bash kernel parameter. That will give you one root
> > shell with no initialization (and shutdown) whatsoever. Thus remember to
> > remount everything read-only before rebooting...
> >
> > -------------------------------------------------------------------------------
> > 						 Jan 'Bulb' Hudec <bulb@ucw.cz>
> > --
> > Kernelnewbies: Help each other learn about the Linux kernel.
> > Archive:       http://mail.nl.linux.org/kernelnewbies/
> > FAQ:           http://kernelnewbies.org/faq/
> >
> >
> 
-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/