Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Dec 1995 08:32:35 +0100 (MET)
From:      Ollivier Robert <roberto@keltia.freenix.fr>
To:        scrappy@hub.org (Marc G. Fournier)
Cc:        hackers@FreeBSD.org
Subject:   Re: Password file manipulation...
Message-ID:  <199512210732.IAA14478@keltia.freenix.fr>
In-Reply-To: <Pine.BSF.3.91.951220204656.15947A-100000@hub.org> from "Marc G. Fournier" at Dec 20, 95 08:50:30 pm

next in thread | previous in thread | raw e-mail | index | archive | help
It seems that Marc G. Fournier said:
> 	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*)?

I have a Perl script (800+ lines) to add users  on a FreeBSD system. If you
want it, just ask.  I haven't found th etime  to add real documentation but
it should be easy to read (if you know Perl :-)). 

257 [23:51] root@keltia:doc/FAQ# new-account 
new-account : Account Creation Program.
Copyright (c) 1993, 94  by Ollivier Robert (roberto@keltia.frmug.fr.net)
Version 1.06.3 on 18/04/95.

Usage: 
new-account [options] login fullname group [group...]

Options:
    -N         doesn't execute anything, just show commands,
    -m         send greeting message to new user,
    -s shell   specifies the shell to use instead of /sbin/tcsh,
    -u uid     specifies une user-id to use (default is next free in class),
    -a alias   specifies the alias to put in /etc/mail/aliases,
    -p pwd     use that encrypted password,
    -q         be quiet and do not display messages.

Configuration file is /usr/local/etc/accountrc.
Group definition file is /usr/local/etc/groupdefs.

-- 
Ollivier ROBERT    -=- The daemon is FREE! -=-    roberto@keltia.frmug.fr.net
   FreeBSD keltia.freenix.fr 2.2-CURRENT #7: Mon Dec 18 00:50:47 MET 1995



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