From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 20F682FE1F for ; Wed, 10 Jan 2001 15:20:05 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f0AKK4831957 for axp-list@listman.redhat.com; Wed, 10 Jan 2001 15:20:04 -0500 Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.69.0.28]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id f0AKK3D31949 for ; Wed, 10 Jan 2001 15:20:04 -0500 Received: from GRAND-CENTRAL-STATION.MIT.EDU by MIT.EDU with SMTP id AA13718; Wed, 10 Jan 01 15:21:46 EST Received: from melbourne-city-street.MIT.EDU (MELBOURNE-CITY-STREET.MIT.EDU [18.69.0.45]) by grand-central-station.MIT.EDU (8.9.2/8.9.2) with ESMTP id PAA14627 for ; Wed, 10 Jan 2001 15:19:57 -0500 (EST) Received: from hikari-no-ken.mit.edu (HIKARI-NO-KEN.MIT.EDU [18.18.0.239]) by melbourne-city-street.MIT.EDU (8.9.3/8.9.2) with ESMTP id PAA00965 for ; Wed, 10 Jan 2001 15:19:53 -0500 (EST) Received: (from rmg@localhost) by hikari-no-ken.mit.edu (8.9.3) id PAA16743; Wed, 10 Jan 2001 15:19:49 -0500 (EST) Message-Id: <200101102019.PAA16743@hikari-no-ken.mit.edu> To: axp-list@redhat.com Subject: Re: pwconv In-Reply-To: Your message of "Wed, 10 Jan 2001 20:00:17 GMT." Date: Wed, 10 Jan 2001 15:19:49 -0500 From: Robby Griffin X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors >I was hoping that you might lead me in the right direction on a little >problem. Without getting into the details of why, I was wondering if you >knew of a way to run a command like pwconv on a file other than >/etc/passwd (and the same for grpconv). I'm looking to convert a password >file into a shadow password file, but want this done in the background >(rather than disturbing /etc/passwd) until it's completely finished (to make >sure that no one has access to the (cleartext) file until it is done and >shadowed). In the worst case, you could run pwconv in a chroot sandbox. Afaik, here's what you need to place in the sandbox to do that: etc/ group passwd lib/ libcrypt.so.1, libc.so.6, and ld-linux.so.2, or whatever is reported by ldd /usr/sbin/pwconv. usr/ sbin/ pwconv grpconv Then you can do: chroot /path/to/sandbox usr/sbin/pwconv chroot /path/to/sandbox usr/sbin/grpconv --Robby