Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Robby Griffin <rmg@MIT.EDU>
To: axp-list@redhat.com
Subject: Re: pwconv
Date: Wed, 10 Jan 2001 15:19:49 -0500	[thread overview]
Message-ID: <200101102019.PAA16743@hikari-no-ken.mit.edu> (raw)
In-Reply-To: Your message of "Wed, 10 Jan 2001 20:00:17 GMT." <F57wAeRaNgEpTX5V3Gy00015a57@hotmail.com>

>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




  reply	other threads:[~2001-01-10 20:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-10 20:00 pwconv Kevin Joubert
2001-01-10 20:19 ` Robby Griffin [this message]
2001-01-11  2:49 ` pwconv Mike Tibor
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