From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653647622090.tru64-unix-managers.marc@archive.invalid> From: bryan.mills () lynx ! co ! uk Date: Thu, 24 May 2001 15:14:22 +0000 To: tru64-unix-managers Subject: SUMMARY FW: useradd command. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653647622090 Had a lot of good responses to this one=2E The answer seems to be a free=20= utility called 'expect'=2E The prize goes to Stuart Hartley for being the=20= first respondant to land in my inbox=2E Greg Freemyer has done something=20= similar with a 'c' program=2E I'll go with expect as I reckon there are a=20= whole bunch of reasons that I can find to use it=2E Thanks to all, Bryan Mills=2E -----Original Message----- From: bryan=2Emills@lynx=2Eco=2Euk [SMTP:MIME :bryan=2Emills@lynx=2Eco=2Euk] Sent: Thursday, May 24, 2001 3:24 PM To: tru64-unix-managers@ornl=2Egov Subject: useradd command=2E --------------------------------------------------------------------------=20= -- I need to be able to set up 800 users on a newly installed TRU64 server=2E I have created a shell script which cat's a file containing the login and then loops for each issuing a useradd command, specifying login=20= shell, home directory etc=2E What I can not achieve is to assign a default=20= password to each login using the passwd command=2E Does anyone know how to=20= do this within a script? Thanks, Bryan=2E This message is intended only for the use of the person(s) ("The intended Recipient(s)") to whom it is addressed=2E It may contain information which is privileged and confidential within the meaning of applicable law=2E If you are not the intended recipient, please contact the sender as soon as possible=2E The views expressed in this communication are not necessarily those held by LYNX Express Limited=2E This message is intended only for the use of the person(s) ("The intended Recipient(s)") to whom it is addressed=2E It may contain information which is privileged and confidential within the meaning of applicable law=2E If you are not the intended recipient, please contact the sender as soon as possible=2E The views expressed in this communication are not necessarily those held by LYNX Express Limited=2E