[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: root entry commented
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/