chpasswd cryptuje

Daniel Mróz beorn w magellan.pl
Czw, 14 Lis 2002, 10:16:31 CET


On Wed, Nov 13, 2002 at 21:26:25 +0100, Michal Moskal wrote:
>>>    Wyglada na to, ze chpasswd w PLD nie szyfruje hasel MD5 (tzn.
>>> szyfruje, ale zwyklym cryptem). Tak ma byc?
>> Raczej nie.
> shadow.spec:
> 
> revision 1.67
> date: 2002/04/21 10:41:32;  author: misiek;  state: Exp;  lines: +6 -2
> - MD5_CRYPT_ENAB yes (now chkpasswd used by installer will generate md5
>   passwords); rel 14
Tak. W dokumentacji tylko jest cos takiego:

Current versions of the Linux C library (both libc 5.x and glibc 2.x)
have the shadow support, including MD5-based crypt(), built in.
Because of this, libshadow.a will build without these functions,
and the ones from libc will be used instead.  Currently, libshadow.a
is for internal use only, so if you see -lshadow in a Makefile of
some other package, it is safe to remove it.

i cholera wie, czy odnosi sie to takze do chpasswd. Ten programik
jednak nie bardzo chce uzywac MD5:

[root w rei root]# useradd test
[root w rei root]# echo "test:blah" | chpasswd
[root w rei root]# grep ^test /etc/shadow
test:71yJJQvgG7zGo:12005:0:99999:5:::
     ^^^^^^^^^^^^^
[root w rei root]# zgrep -i md5 /usr/share/man/man8/chpasswd.8.gz
[root w rei root]# chpasswd -h
użycie: chpasswd [-e]

Wyglada na to, ze jednak chpasswd nie zostal zbudowany z
MD5_CRYPT_ENAB, co w przypadku PLD, gdzie domyslnie hasla sa
przepuszczane przez MD5 (nie dotyczy instalatora), jest dziwne.
Da sie to poprawic przed 1.0?


Pozdrawiam
Beorn

-- 
----------------------------------------------------------------------
Daniel `Beorn' Mróz      <beorn w alpha.pl>       http://127.0.0.1/beorn
GCS/E d-(pu) s-:- a--@ C++++ UL++++$ P+++ L+++ E--- X W+>++ N+++ o? K-
w--- O M- V- PS PE- !Y PGP+ t- 5- R tv-- b+ DI++ D+++ G++ e h+ r--- y?
----------------------------------------------------------------------



Więcej informacji o liście dyskusyjnej pld-devel-pl