Shell script

brad brad at bradandkim.net
Wed Nov 12 18:45:15 CST 2003


This words great for useradd, but how then would you set the password
for each user?  

Thanks,

Brad

Garret wrote:
> perl -lnae '`useradd $F[0]`' filename
> 
> Works for me... 
> 
> Where filename's contents look like:
> 
> username1       password1
> username2       password2
> usernamen       passwordn
> 
> P.S. These are the kind problems for which Larry Wall created Perl...
> 
> --
> Garrett Goebel
> IS Development Specialist 
> 
> ScriptPro                   Direct: 913.403.5261 
> 5828 Reeds Road               Main: 913.384.1008 
> Mission, KS 66202              Fax: 913.384.2180 
> www.scriptpro.com          garrett at scriptpro dot com 
> 




More information about the Kclug mailing list