Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: dunnett@mala.bc.ca (Malcolm Dunnett)
Subject: Re: Setting password from a shell script possible?
Date: 1995/12/21	[thread overview]
Message-ID: <1995Dec21.204610@malad2.mala.bc.ca> (raw)
In-Reply-To: 95355.204430JONQC@CUNYVM.CUNY.EDU

In article <95355.204430JONQC@CUNYVM.CUNY.EDU>, 
   <JONQC@CUNYVM.CUNY.EDU> writes:
>  
> We had the same problem.  At the beginning of every semester, we need to
> put up bulk accounts for new students.  The answer to your problems is
> the 'expect' program that is mentioned in the OSF FAQ; 'expect' can
> "talk" to 'passwd'.
>  

    Thanks for the suggestion. One other person also suggested using
expect.

    I decided to write a program that takes the cleartext
password as a command argument and outputs the encryted password. I 
modified adduser to feed this into an environment variable and then
"echo" the password into the /etc/passwd file along with all the
other information. I haven't put everything together yet, but this
approach seems to work quite well ( if there's a flaw in this
method I'd sure appreciate someone pointing it out ).

-- 
=============================================================================
Malcolm Dunnett    Malaspina University-College     Email: dunnett@mala.bc.ca
Computer Services  Nanaimo, B.C. CANADA V9R 5S5       Tel: (604)755-8738



  reply	other threads:[~1995-12-21  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-12-19  5:00 Setting password from a shell script possible? Malcolm Dunnett
1995-12-21  5:00 ` JONQC
1995-12-21  5:00   ` Malcolm Dunnett [this message]
1995-12-24  5:00   ` Richard Warkentin
1995-12-27  5:00     ` PAUL D. CHAPIN
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox