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

Re: [suse-security] password recovery



/ 2004-07-26 22:48:04 +0100
\ Tom Knight:
> 
> 
> > -----Original Message-----
> > From: Lars Ellenberg [mailto:l.g.e@xxxxxx]
> > Sent: 26 July 2004 18:59
> > To: suse-security@xxxxxxxx
> > Subject: Re: [suse-security] password recovery
> > 
> > 
> > > And what if I use LVM? how do I mount root manually?
> > 
> > it has been mentioned several times:
> > at the (grub,lilo,whatever) boot promt, you can say init=/bin/bash (or
> > sash, or whatever).  you then only need to
> >  mount -o remount,rw /; passwd ; mount -o remount,ro ; reboot -f 
> > so what?
> 
> If the root partition is in LVM then you'll also need to run the LVM 
> commands (pvscan etc, can't remember, I'll look at my notes in the morning)

(it would be /sbin/vgscan ; /sbin/vgchange -a y ... but see below )

> to see this partition. This is the main reason I use:
> /dev/sda1	/boot	ext2
> /dev/sda2	swap
> /dev/sda3	/	reiserfs
> /dev/sda4	extended partition
> /dev/sda5	LVM partition
> 
> Makes /boot and / trivial to access, assuming I have a boot disk
> with the megaraid2 driver available.

which I do, too.
But:
if / is on LVM (or something other special), this has to be done by the
initrd, anyways. which is done before init starts.
so root is accessible, before $program is started, regardless what you
gave as init=$program parameter.

	lge

-- 
Check the headers for your unsubscription address
For additional commands, e-mail: suse-security-help@xxxxxxxx
Security-related bug reports go to security@xxxxxxx, not here