[rt-users] Auto creating a default password for unpriviledged user

Andy Harrison ah30 at harrisonfamily.com
Mon Feb 9 10:52:15 EST 2004


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Sun, 8 Feb 2004 14:37:47 -0800, Jonathan Chen wrote
Subject: "RE: [rt-users] Auto creating a default password for unpriviledged user"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> Thanks for the quick reply Jesse.
> 
> I didn't know you had to enclose the default password with " ' "

If you're interested, there's a handy perl module for creating decent
passwords, Crypt::GeneratePassword.  Here's an example:

#!/usr/bin/perl -w

use strict;
use Crypt::GeneratePassword qw(word chars);

my $word = word( 
        1,      # min length
       10,      # max length
     "en",      # language
        3,      # number of symbols to use
        0,      # number of caps to use
    0.001,      # minfreq (0.00 - 1.00)       # higher values are more 
     0.05       # avgfreq (0.00 - 1.00)       # pronouncable, but less secure
);

print "\npassword:\t$word\n\n";


-- 
Andy Harrison
(full headers for details)



More information about the rt-users mailing list