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 Date: Thu, 4 Nov 2004 09:10:36 +0100 From: Stefaan A Eeckels Newsgroups: comp.unix.tru64,fa.alpha-osf-managers Subject: Re: Lost root password! Message-ID: <20041104091036.6723cec4.tengo@DELETEMEecc.lu> References: Organization: E.C.C. sa - Computer Consultants X-Newsreader: Sylpheed version 1.0.0beta1 (GTK+ 1.2.10; sparc-sun-solaris2.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit NNTP-Posting-Host: pppoe50-99-luxdsl-050.pt.lu X-Trace: news.vo.lu 1099555846 83.99.50.50 (4 Nov 2004 09:10:46 +0200) Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!proxad.net!npeer.de.kpn-eurorings.net!news.vo.lu!justus.ecc.lu!nobody Xref: g2news1.google.com comp.unix.tru64:385 fa.alpha-osf-managers:859 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 -- "What is stated clearly conceives easily." -- Inspired sales droid