From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653647622091.tru64-unix-managers.marc@archive.invalid> From: bryan.mills () lynx ! co ! uk Date: Thu, 24 May 2001 15:29:46 +0000 To: tru64-unix-managers Subject: SUMMARY FW: useradd command. (Additional X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653647622091 Sorry, Forgot the important bit=2E http://gatekeeper=2Edec=2Ecom/ and search for 'expect'=2E You may need to install tcl as well=2E Regards, Bryan=2E -----Original Message----- From: Jeffrey_Hummel@albemarle=2Ecom [SMTP:MIME=20= :Jeffrey_Hummel@albemarle=2Ecom] Sent: Thursday, May 24, 2001 4:18 PM To: Bryan Mills Subject: Re: SUMMARY FW: useradd command=2E --------------------------------------------------------------------------=20= -- Can you let us know where you found expect? Thanks! Jeff bryan=2Emills@lynx=2Eco=2Euk@ornl=2Egov on 05/24/2001 10:14:22 AM Sent by: tru64-unix-managers-owner@ornl=2Egov To: tru64-unix-managers@ornl=2Egov cc: Subject: SUMMARY FW: useradd command=2E Had a lot of good responses to this one=2E The answer seems to be a free utility called 'expect'=2E The prize goes to Stuart Hartley for being the first respondant to land in my inbox=2E Greg Freemyer has done something similar=20= with a 'c' program=2E I'll go with expect as I reckon there are a 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= --------------------------------------------------------------------------=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 shell, home directory etc=2E What I can not achieve is to assign a default password to each login using the passwd command=2E Does anyone know how to 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 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