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!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.magma.ca!news.magma.ca.POSTED!not-for-mail NNTP-Posting-Date: Mon, 08 Nov 2004 16:50:35 -0600 Date: Mon, 08 Nov 2004 17:50:33 -0500 From: Mario Stargard User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en, ja, de MIME-Version: 1.0 Newsgroups: comp.unix.tru64,fa.alpha-osf-managers Subject: Re: Lost root password! References: <20041104091036.6723cec4.tengo@DELETEMEecc.lu> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 209.217.122.220 X-Trace: sv3-2tQwX8twrobUUntZihPbDkm2zGcZd2LXfc8Mu6At/5dagdh5MIJ7JNnEr5u+12wEVVCzLd6nVA+Nz1W!9ni5AFOxX9NIBnms3L8Haytx28Qt63Qx1+h8pzKYQcV1FV72Gy/WdeGKvrxWEvkpLrIXXHL311c= X-Complaints-To: abuse@magma.ca X-DMCA-Complaints-To: abuse@magma.ca X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.20 Xref: g2news1.google.com comp.unix.tru64:400 fa.alpha-osf-managers:874 Angelika Byczkowski wrote: > 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. 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