Files
oldlinux-files/docs/Install-Guide/install-guide-2.2.2/node193.html
2024-02-19 00:23:35 -05:00

46 lines
2.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
<!Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
<HEAD>
<TITLE>4.11.2 Fixing the root password</TITLE>
</HEAD>
<BODY>
<meta name="description" value="4.11.2 Fixing the root password">
<meta name="keywords" value="gs">
<meta name="resource-type" value="document">
<meta name="distribution" value="global">
<P>
<BR> <HR><A NAME=tex2html4217 HREF="node194.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4215 HREF="node191.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4209 HREF="node192.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4219 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4220 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html4218 HREF="node194.html">4.11.3 Fixing trashed filesystems</A>
<B>Up:</B> <A NAME=tex2html4216 HREF="node191.html">4.11 What To Do </A>
<B> Previous:</B> <A NAME=tex2html4210 HREF="node192.html">4.11.1 Recovering using a </A>
<BR> <HR> <P>
<H2><A NAME=SECTION006112000000000000000>4.11.2 Fixing the root password</A></H2>
<P>
<A NAME=5123>&#160;</A>
<A NAME=5124>&#160;</A>
If you forget your root password, no problem. Just
boot the boot/root disk, mount your root filesystem on <tt>/mnt</tt>,
and blank out the password field for <tt>root</tt> in
<tt>/mnt/etc/passwd</tt>, as so:
<P><TT> root::0:0:root:/:/bin/sh
<P></TT>
Now <tt>root</tt> has no password; when you reboot from the hard drive
you should be able to login as <tt>root</tt> and reset the password
using <tt>passwd</tt>.
<P>
Aren't you glad you learned how to use <tt>vi</tt>? On your boot/root
disk, other editors such as Emacs probably aren't available, but
<tt>vi</tt> should be.
<P>
<BR> <HR><A NAME=tex2html4217 HREF="node194.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4215 HREF="node191.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4209 HREF="node192.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4219 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4220 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html4218 HREF="node194.html">4.11.3 Fixing trashed filesystems</A>
<B>Up:</B> <A NAME=tex2html4216 HREF="node191.html">4.11 What To Do </A>
<B> Previous:</B> <A NAME=tex2html4210 HREF="node192.html">4.11.1 Recovering using a </A>
<BR> <HR> <P>
<BR> <HR>
<P><ADDRESS>
<I>Matt Welsh <BR>
mdw@sunsite.unc.edu</I>
</ADDRESS>
</BODY>