From: Stefaan A Eeckels <tengo@DELETEMEecc.lu>
Subject: Re: Lost root password!
Date: Thu, 4 Nov 2004 09:10:36 +0100 [thread overview]
Message-ID: <20041104091036.6723cec4.tengo@DELETEMEecc.lu> (raw)
In-Reply-To: c6977c59.0411031640.578a20da@posting.google.com
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
--
"What is stated clearly conceives easily." -- Inspired sales droid
next prev parent reply other threads:[~2004-11-04 8:10 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 [this message]
2004-11-04 23:11 ` Angelika Byczkowski
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