On Thu, Mar 30, 2000 at 09:42:41AM +1000, DANG, Muoi wrote:
>
> In HP-UX it can be done easily by booting to single mode, change a
> /etc/password and reboot a computer. Can this be done on RedHat Linux?
Use the "single" option at the lilo prompt. For a lilo.conf kernel
config labelled "linux", type "linux single" at the LILO prompt:
lilo: linux single
That will boot you up in single-user mode, from which you can use passwd
to change root's password. Then you can do an "init 3" to go back to
multiuser mode. (I assume you have the default "id:3:initdefault:" line
in your /etc/inittab.)
(Interestingly enough, Redhat Linux mounts all filesystems in
single-user mode. I don't personally think that's the right way to go
about things, since for instance you might need to prevent fsck's of
other filesystems for some reason. I'm guessing this will be an even
bigger issue with lvm--although I don't whether the current version of
lvm lets you boot into a logical volume maintenance mode, which is
another place where a (doomed) attempt to mount all filesystems would
become annoying in the future.)
-Mark Shewmaker
[EMAIL PROTECTED]
--
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null