adduser

Mavroyanopoulos Nikos nmav at i-net.paiko.gr
Thu Jan 14 13:49:54 EET 1999


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Prosoxi, h lista tha metaferthei sto lists.hellug.gr
ksimeromata Pemptis pros Paraskeyh
H nea dieuyhinsi einai linux-greek-users at hellug.gr
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

On Thu, Jan 14, 1999 at 12:23:15PM +0200, Michalis.Kabrianis at nefeli.forthnet.gr wrote:

> >  L> print "Password? ";
> >  L> chomp ($pass = <STDIN>);
> >  L> print "Salt? ";
> >  L> chomp ($salt = <STDIN>);
> >  L> $password=crypt($pass,$salt);
> > 
> > Pragma poy ypo8etei oti o trexwn to programma gnwrizei oti to salt einai oi
> > prwtoi dyo xarakthres toy password. (bebaia kai poy den to gnwrize, twra to
> > ema8e. Anyways).
> > 
> 
> Den nomizw oti prepei na to kserei ayto gia na doulepsei to script.
> Eksallou, sou zitaei to unencrypted password kai meta to salt, opote sto
> kodikopoiei me to salt pou tou dineis, kai sou bgazei to encrypted. 
> Alla mallon den katalaba tin paratirisi, opote, gia "spasta kai ksanarixta" pls
Aplws ta password pou einai sto /etc/shadow (h passwd) exoun san tous
dyo prwtous xaraktires tous to salt. Opote to password edw einai:
$password = $salt + crypt($pass,$salt)
(opou to salt 2 xaraktires). Auto pou egrapsa einai endeiktiko den einai
perl.

> Michalis

-- 

Nikos Mavroyanopoulos
        nmav at i-net.paiko.gr
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at cs-net.gr
Ta archives tis listas einai sto http://www.cs-net.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list