From owner-freebsd-hackers Wed Dec 20 18:29:53 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA03083 for hackers-outgoing; Wed, 20 Dec 1995 18:29:53 -0800 (PST) Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id SAA03078 for ; Wed, 20 Dec 1995 18:29:48 -0800 (PST) Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id TAA01592; Wed, 20 Dec 1995 19:31:59 -0700 Date: Wed, 20 Dec 1995 19:31:59 -0700 From: Nate Williams Message-Id: <199512210231.TAA01592@rocky.sri.MT.net> To: "Marc G. Fournier" Cc: hackers@freebsd.org Subject: Re: Password file manipulation... In-Reply-To: References: Sender: owner-hackers@freebsd.org Precedence: bulk > Just wondering if there is any way of ... easily(?) ... adding > and deleting entries from the master password file? Essentially, what > I'm looking for C functions that I can use too addpwent, delpwent > or chgpwent (and ya, I know, I should learn Perl, cause it would be > easier that way...*sigh*)? Look at the perl Adduser script. It does all of that for you already, and if you want to you can steal from it to build your own if it doesn't do the trick. (Really, Perl is much better suited for the job than C is) Nate