From: angelika.bz@gmail.com (Angelika Byczkowski)
Subject: Re: Lost root password!
Date: 4 Nov 2004 15:11:53 -0800 [thread overview]
Message-ID: <c6977c59.0411041511.69c86ae1@posting.google.com> (raw)
In-Reply-To: 20041104091036.6723cec4.tengo@DELETEMEecc.lu
Stefaan A Eeckels <tengo@DELETEMEecc.lu> wrote in message news:<20041104091036.6723cec4.tengo@DELETEMEecc.lu>...
> On 3 Nov 2004 16:40:08 -0800
> angelika.bz@gmail.com (Angelika Byczkowski) wrote:
>
> > I've seen suggestions to use mkpasswd,
> > "/usr/tcb/bin/convuser -ai <userid>", or vipw. However, if we are not
> > running from the root disk (since we've booted from the CD), the
> > conversion program won't work since it would be looking at the wrong
> > passwd file and putting the resulting data in the wrong place.
>
> If you need to run a program that expects its files to
> be in a specific location, use chroot. This is especially
> easy when the directory you chroot to is the root of a
> running system, because all the necessary binaries and
> libraries are already in the appropriate locations (assunming
> your root FS is mounted on /mnt):
>
> # chroot /mnt /bin/ksh
>
> Now you can run convuser or vipw to your heart's content.
>
> Take care,
>
> --
> Stefaan
Thank you so much! This indeed will do the trick to create the hashed
passwd files I was missing.
next prev parent reply other threads:[~2004-11-04 23:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-04 0:40 Lost root password! Angelika Byczkowski
2004-11-04 0:55 ` Christoffer Hjortlund Heder
2004-11-04 1:27 ` Marco Benton - BOFH
2004-11-04 1:26 ` Marco Benton - BOFH
2004-11-04 8:10 ` Stefaan A Eeckels
2004-11-04 23:11 ` Angelika Byczkowski [this message]
2004-11-08 22:50 ` Mario Stargard
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox