From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,277d2eb2e0164ed4 X-Google-Attributes: gidfee84,public From: mib@bb-data.de (Martin Ibert) Subject: Re: Change Password routine for C2 Date: 1996/01/31 Message-ID: #1/1 X-Deja-AN: 137528445 sender: mib@laforge.ppe.bb-data.de references: <4drtam$tsm@alpha.delta.edu> content-type: text/plain; charset=ISO-8859-1 organization: BB-DATA GmbH, Berlin, Germany mime-version: 1.0 newsgroups: comp.unix.osf.osf1 In article <4drtam$tsm@alpha.delta.edu> keith@alpha.delta.edu (Keith DeLong) writes: : : Is there a C2 security change password routine that can be called from a : program? We've implemented an automated signup procedure where the user : provides some information, and is given an account. I would really like : this program to automatically set a password for the user too. Your best bet ist to write a wrapper around the real passwd program. The wrapper would open a pseudo tty for the passwd program to run on, parse the prompts and feed the input to the program. I've tried it; it works with lots of UNIXoids. Look into the Stevens book (Advanced Programming in the UNIX Environment) for enlightenment on how to do it, or mail me. -- --------------------------------------------------------------------------- Dipl.-Inform. Martin Ibert, BB-DATA GmbH, Brunnenstra�e 111, D-13355 Berlin >> e-mail , phone +49-30-245-56582, fax +49-30-245-56577 << --------------------------------------------------------------------------- >> Disclaimer: My views do not necessarily reflect those of my employer. <<