From owner-freebsd-questions Mon Jun 21 11:29:19 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.qcislands.net (unknown [209.205.50.6]) by hub.freebsd.org (Postfix) with ESMTP id 4DA3115194 for ; Mon, 21 Jun 1999 11:28:00 -0700 (PDT) (envelope-from ccstore@qcislands.net) Received: from [209.205.50.22] (helo=osa.qcislands.net) by mail.qcislands.net with esmtp (Exim 2.12 #7) id 10w8nW-0001uH-00 for freebsd-questions@freebsd.org; Mon, 21 Jun 1999 11:27:58 -0700 Received: from ccstore by osa.qcislands.net with local (Exim 3.01 #3) id 10w8ny-0004dr-00 for freebsd-questions@freebsd.org; Mon, 21 Jun 1999 18:28:26 +0000 From: Jim Pazarena To: freebsd-questions@freebsd.org Subject: setting/changing password inside 'c' X-Mailer: SCO Shell Date: Mon, 21 Jun 1999 11:16:06 -0700 (PDT) Message-ID: <9906211116.aa15402@dick.ccstores.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I would like to create a (root) routine in 'c' to be able to change a user's password. I presently use a script which uses 'expect' to trick the password command. I would like to convert this to a 'c' program. The routine is mostly written. But I need to interface the routine to that system for the actual change. Are there any functions available to accomplish this within 'c' ? Suggestions would be appreciated. -- Jim Pazarena mailto:paz@ccstores.com http://www.qcislands.net/paz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message