From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,a956d10223cb05d7 X-Google-Thread: 106cd7,a956d10223cb05d7 X-Google-Attributes: gidfa528,gid106cd7,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews1.google.com!not-for-mail From: angelika.bz@gmail.com (Angelika Byczkowski) Newsgroups: comp.unix.tru64,fa.alpha-osf-managers Subject: Re: Lost root password! Date: 4 Nov 2004 15:11:53 -0800 Organization: http://groups.google.com Message-ID: References: <20041104091036.6723cec4.tengo@DELETEMEecc.lu> NNTP-Posting-Host: 12.24.47.10 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1099609914 11062 127.0.0.1 (4 Nov 2004 23:11:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 4 Nov 2004 23:11:54 +0000 (UTC) Xref: g2news1.google.com comp.unix.tru64:389 fa.alpha-osf-managers:867 Stefaan A Eeckels 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 ", 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.