From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f0e73e6c57c7eb58 X-Google-Attributes: gidfee84,public From: pdchapin@unix.amherst.edu (PAUL D. CHAPIN) Subject: Re: Setting password from a shell script possible? Date: 1995/12/27 Message-ID: <4brknk$d3r@amhux3.amherst.edu>#1/1 X-Deja-AN: 122948387 references: <1995Dec19.160036@malad2.mala.bc.ca> <95355.204430JONQC@CUNYVM.CUNY.EDU> <4bkvaf$rbp@its.hooked.net> organization: Amherst College, Amherst MA, USA newsgroups: comp.unix.osf.osf1 Richard Warkentin (rdw@hooked.net) wrote: : > setpass ${USER} ${PASSWD} : > Potential problem here is that is somebody does the right ps command while this is happening, they get to see the username and password being set up. There are a couple of ways of handling this including disabling ps or going down to single user mode. I've set it up to put the information in a temporary file and then invoke expect using the command file rather than command line arguments. -- Paul Chapin Unix Systems Manager Amherst College