[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: create password in postinst



Am Thu, 26 Jan 2006 10:41:02 -0500 schrieb Justin Pryzby
<justinpryzby@users.sourceforge.net>:

> > Is this OK in the postinst, especially the dependency on mkpasswd?
> With the dependency, it is okay; without the dependency, you would
> have to be prepared for mkpasswd to be not available.  (Most probably
> by disabling password authentication).

Seems not to be the best way.

> But why not use md5sum, instead, which is the "essential: yes" package
> coreutils?  Is it because you need a "salt"ed hash?  It doesn't seem
> that a constant salt does much good..

The original content of the dump file looks like:

  ...,'CHANGE','\$1\$12345678\$2lQK5REWxaFyGz.p/dos3/',...

I assumed that it should be the same style of password hash, shouldn't
it? What do you think?

> Clear skies,
> Justin

Thanks
  Daniel

-- 
mfg
Daniel Knabl              http://www.tirolinux.net
PGP Fingerprint                   daniel@aio4u.com
A069 671B 39F2 E9B9 FB34  68BB 4BEC 1344 C8A4 3F0B

Attachment: signature.asc
Description: PGP signature


Reply to: