From: Mario Stargard <mstargard@myprivacy.ca>
Subject: Re: Lost root password!
Date: Mon, 08 Nov 2004 17:50:33 -0500 [thread overview]
Message-ID: <ZrmdnbZXI6amZRLcRVn-uQ@magma.ca> (raw)
In-Reply-To: <c6977c59.0411041511.69c86ae1@posting.google.com>
Angelika Byczkowski wrote:
> 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.
You could also just remove the password.pag and password.dir files in
/etc (I think that's what they were called). The system will use the
/etc/password flat file as is. Also, are we sure that the system isn't
running enchanced security? If so then the passwords are in the the
Trusted Computing Base. You would need to use the /usr/tcb/bin/edauth
command in that case.
Mario
prev parent reply other threads:[~2004-11-08 22:50 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
2004-11-08 22:50 ` Mario Stargard [this message]
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