Don't ask to ask, just ask | |
PerlMonks |
Public Access Linux Boxby lacertus (Monk) |
on Mar 15, 2003 at 05:05 UTC ( [id://243251]=perlquestion: print w/replies, xml ) | Need Help?? |
lacertus has asked for the wisdom of the Perl Monks concerning the following question:
Hello my friends, I am setting up an old 486 machine (on a 'sandboxed' part of my home network) with a Slack install, to allow so of my friends to start working with linux at the shell. I am writing a Perl program to allow for 'anonymous' user creation; this program runs as the 'shell' of a special newuser account whose password I will hand out to folks I know who want to make a shell account. Now here's the rub. I'm new to Perl, and am trying to implement lots of different little things in it to practice. I have been running into real difficulty in implementing the "useradd" and "passwd" programs from within the Perl program, once I have taken in and validated such things as what user name the person wants, etc. How do you think I should be go about doing this securely? Right now I have: which is just simply not working. Do I fork a process to do this. I haven't even gotten to working on the "passwd" part (which I know will cause lots of trouble) as the "useradd" part is still on the fink. Thanks so much, you guys are brilliant.
Back to
Seekers of Perl Wisdom
|
|