Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 17 Jan 2007 13:33:52 +0300
From: Solar Designer <>
Subject: Re: OpenUnix 8 hash format is not the normal DES?

On Mon, Jan 15, 2007 at 02:26:07PM -0300, Danett song wrote:
> > perl -e 'print "$n:$p:$u:$g:$f:$d:$s\n" while ($n,$p,$u,$g,$q,$c,$f,$d,$s) = getpwent()'
>   Unhapply it doesn't work as expected, it show all informations, expect the hashs...
>   root:x:0:3:0000-Admin(0000):/:/sbin/sh

Did you run the above command as root?  If so, then either this build of
Perl lacks shadow password support (it's a Perl compile-time option) or
the getspnam(3) function doesn't return the hashes.  I suspect that it's
the former.  Please try the attached C program.

Alexander Peslyak <solar at>
GPG key ID: 5B341F15  fp: B3FB 63F4 D7A3 BCCC 6F6E  FC55 A2FC 027C 5B34 1F15 - bringing security into open computing environments

Was I helpful?  Please give your feedback here:

View attachment "getpwent-getspnam.c" of type "text/plain" (370 bytes)

To unsubscribe, e-mail and reply
to the automated confirmation request that will be sent to you.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.