Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jun 1999 11:48:23 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Jim Pazarena <paz@ccstores.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: setting/changing password inside 'c'
Message-ID:  <Pine.BSF.4.10.9906211147590.36767-100000@resnet.uoregon.edu>
In-Reply-To: <9906211116.aa15402@dick.ccstores.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 21 Jun 1999, Jim Pazarena wrote:

> 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' ?

Go read the source for passwd.

http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/passwd

Doug White                               
Internet:  dwhite@resnet.uoregon.edu    | FreeBSD: The Power to Serve
http://gladstone.uoregon.edu/~dwhite    | www.freebsd.org



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9906211147590.36767-100000>