Aaron Konstam:
The problem as I see it is to generate passwds automatically. There used to be a program mkpasswd that did that but I can't find that now.
Well I spoke to soon. mkpasswd is part of the expect package and it generates passwds that will make your script much simpler.
Does it do the same job as crypt? (Giving you the encrypted password for the plain text one that you supply.)