Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Dec 1995 19:31:59 -0700
From:      Nate Williams <nate@rocky.sri.MT.net>
To:        "Marc G. Fournier" <scrappy@hub.org>
Cc:        hackers@freebsd.org
Subject:   Re: Password file manipulation...
Message-ID:  <199512210231.TAA01592@rocky.sri.MT.net>
In-Reply-To: <Pine.BSF.3.91.951220204656.15947A-100000@hub.org>
References:  <Pine.BSF.3.91.951220204656.15947A-100000@hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512210231.TAA01592>