From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f0e73e6c57c7eb58,start X-Google-Attributes: gidfee84,public From: dunnett@mala.bc.ca (Malcolm Dunnett) Subject: Setting password from a shell script possible? Date: 1995/12/19 Message-ID: <1995Dec19.160036@malad2.mala.bc.ca>#1/1 X-Deja-AN: 122382579 organization: Malaspina University-College newsgroups: comp.unix.osf.osf1 Is there a program which will allow me to set a password from within a script ( ie not prompt from the terminal but read the password string from the script file ). I'm trying to write a procedure to do a "bulk create" of accounts (for setting up accounts for CSci classes). I've figured out how to get the adduser portion to take its input from a script, but it appears that regardless of what I do the passwd program always reads from the terminal. Do I need to reinvent the passwd program, has someone else already done so, or is there a way to get passwd to do what I want. adv(Thanks)ance -- ============================================================================= Malcolm Dunnett Malaspina University-College Email: dunnett@mala.bc.ca Computer Services Nanaimo, B.C. CANADA V9R 5S5 Tel: (604)755-8738