Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.internals Subject: Re: passwd Message-ID: <8833:Sep2520:50:2490@kramden.acf.nyu.edu> Date: 25 Sep 90 20:50:24 GMT References: <24596@adm.BRL.MIL> Organization: IR Lines: 16 In article <24596@adm.BRL.MIL> ITMS400@indycms.iupui.edu (Manjit Trehan) writes: > Is there any way to have the adduser program set passwords from a > file. It's usually a bad idea to store plaintext passwords. > It seems to not use stdin to read the password, rather, > opens the tty device to read the password (??). Under BSD systems, the general solution to this problem is to run ``pty adduser'' with the input and output redirected whatever way you want. pty 3.001 and its first patch are available from me or via anonymous ftp to 128.122.128.22; they'll appear on c.s.unix as soon as Rich gets enough hate mail :-). ---Dan