Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nobody knows pl help password problem

Status
Not open for further replies.

Sjaak

IS-IT--Management
Apr 28, 2002
3
0
0
NL
Hi

This is my first posting and I'm new to perl.
Maybe it's a stuppid question but let's try.

I'm like to generate a password with a perlscript who get the user information from a html form.
And create online a account.
I can use system('usseradd -usr and so on ');

But how to deal with passwd command it comes back in linux with 2 echo's.


I read many stuff for weeks ask and ask but ???????????

Sjaak
 
Sjaak,

Have a look at the crypt() function, and there's an example in "Programming Perl" as well.

Not too easy to use though as you'll have to write a Perl script that will modify /etc/passwd - always a bit fraught.
Mike
michael.j.lacey@ntlworld.com
 
There are programs written which will do this for you. Try going to a scripts site like cgi.resource-index.com or internet.com and look for "server managers" or "web account managers" or something like that. If you can get a free one, great, but you may have to shell out like $100. I don't know about you, but that is well worth the time it would take to program something like that yourself. It's pretty involved.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top