[NTLUG:Discuss] Sendmail/setting up user accounts. Mail server change..
MadHat
madhat at unspecific.com
Wed Oct 13 14:46:58 CDT 1999
Jonathan Miller wrote:
>
> If you want an example of how to make passwd and shadow files solely from perl then the following will be of intrest:
>
> (My implementation has some certain confusing things that I've removed to make it a more general script..)
<SNIP>
> Yes I know I have the same 7 lines twice and I could have made a function or a loop or something. But you know what? I didn't.
>
> Also passwd.tmp and shadow.tmp are templates that contain the default accounts for the system and generally anything that's not in your datafile.
>
> This is intended just to be a sample, and not anything I would want you to copy and paste on into a file and expect to work.
I was looking for something similar, the main part being the crypt... I
know there is another way to do it, but it _IS_ perl...
--
MadHat
More information about the Discuss
mailing list