Way to set a passwd from the command line

From: James Hammett <james_at_che.utexas.edu>
Date: Mon, 14 Jul 2003 15:11:12 -0500

I'm trying to setup an bunch of new users at the same time. Using
awk, I defined all of the users and created their home directories,
etc. However, the adduser command doesn't allow you to set the
passwd.

The digital passwd command doesnt allow you to do:
        passwd <new_user> <passwd>
If this was the case, I'd just use awk and pipe it all into that.

Anyone have any ideas about how to do this. I don't want to have to
type out the password and THEN REPEAT IT for every single user.

thanks,
James
-- 
--------------------------------------------------------------------------
James Hammett
Users Services / Server and Lab Administration (SLAM)
Information Technology Services ( (ITS)                          CPE 4.442
Chemical Engineering Unix Support                                   471-9701
----------------------------------------------------------------------------
        An injustice anywhere is a threat to justice everywhere - MLK jr.
----------------------------------------------------------------------------
Received on Mon Jul 14 2003 - 20:09:18 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:44 NZDT