[Techtalk] script for adding users
Devdas Bhagat
devdas at dvb.homelinux.org
Sun May 9 22:20:17 EST 2004
On 09/05/04 20:39 +1000, wendy wrote:
<snip>
> I've printed out the techtalkers script and filed it under extremely
> important. Wish I had asked earlier before I spent so much time trying
> to generate random passwords for the accounts. This will no doubt come
> in very handy.
[devdas at evita devdas]$ whatis mkpasswd
mkpasswd (1) - generate new password, optionally apply it
to a user
A very handy tool when generating random passwords. Needs expect.
> Just a question...if I didn't want the passwords to expire, could I just
> comment out:
>
> system("/usr/bin/chage -M 90 -d %s %s" % (olddate, username))
Yes.
Devdas Bhagat
More information about the Techtalk
mailing list