From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10952f,6d23677f592404b7 X-Google-Attributes: gid10952f,public X-Google-Thread: fee84,6d23677f592404b7 X-Google-Attributes: gidfee84,public From: tqbf@char-star.rdist.org (Thomas H. Ptacek) Subject: Re: Program to change password upon login Date: 1997/01/14 Message-ID: #1/1 X-Deja-AN: 209965471 references: <32DBB2C4.4BB4@niehs.nih.gov> organization: EnterAct, L.L.C. reply-to: tqbf@enteract.com newsgroups: comp.unix.osf.osf1,comp.security.unix Tue, 14 Jan 1997 11:22:28 -0500 shrewsbu@niehs.nih.gov: >I need a program that will change a new unix user's >password when they first login. It needs to work with I don't know of anything that's already available right now, but this is a fairly trivial thing to write. Assuming you want users to change passwords interactively (and not just get assigned a different password), this is as simple as setting the user's shell to a program that forks and execs passwd(1), and then execs the user's default shell. Be more specific as to what you want to have happen. ---------------- Thomas Ptacek at EnterAct, L.L.C., Chicago, IL [tqbf@enteract.com] ---------------- exit(main(kfp->kargc, argv, environ));