ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl.net
perl.net
Re: Making Linux User Password using perl
by Vikasumit other posts by this author
Jun 22 2006 12:39AM messages near this date
view in the new Beta List Site
Re: Making Linux User Password using perl | CodeDomProvider access to .NET Perl implementation
FRAMEWORK Hi,

I am using

my $tmp=crypt('sumit','ss');
$encryptedpassword=crypt('sumit','$1$'.$test1.'$');

is this work with Linux user /etc/shadow file

Thanks
sumit Gupta



On 6/22/06, Minh Tran <mtran@[...].au>  wrote:
> 
>  see crypt function
>  crypt(text,salt);
> 
> 
>  ie
> 
>  $crypted=crypt('password','AH');
>  print $crypted;
> 
>   On 22/06/06, Vikasumit < vikasumit@[...].com> wrote:
> 
>  >  Hi,
>  >
>  > I am writing a Perl Script that a user run to make linux user password
>  > style password ....
>  >
>  > I mean If a user type "password"
>  >
>  > I can save this password such that I just replace it in /etc/shadow
>  > password coulmn and his password changes.
>  >
>  > I can generate password using PHP crypt function but not through perl
>  > please help...
>  > Thanks
>  > Sumit Gupta
>  >
>  > _______________________________________________
>  > Perl.NET mailing list
>  > Perl.NET@[...].com
>  > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs<http://listserv.activesta
te.com/mailman/mysubs> 
>  >
>  >
> 
> 
Thread:
Vikasumit
$Bill Luebkert
Vikasumit
$Bill Luebkert
Vikasumit

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved