Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!ensta!itesec!keltia.frmug.fr.net!not-for-mail From: roberto@keltia.frmug.fr.net (Ollivier Robert) Newsgroups: comp.os.386bsd.questions Subject: Re: ADD USER utility for BSDI Date: 19 Aug 1994 14:42:03 +0200 Organization: A Happy FreeBSD 1.1.5 Usenet Site Lines: 35 Message-ID: <3329b9$6q9@keltia.frmug.fr.net> References: <Brad-1808941518300001@btmedia.mankato.mn.us> Reply-To: roberto@hsc.fr.net (Ollivier Robert) NNTP-Posting-Host: keltia.frmug.fr.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In article <Brad-1808941518300001@btmedia.mankato.mn.us>, Brad Theissen <Brad@BTMedia.Mankato.MN.US> wrote: > We are using the BSDI product, and are growing weary of the process of > adding new users (editing pwrd file, making directories, changing > ownership, etc.). We made a little mistake last night that forced us to > rebuild the router from scratch! I have one in PERL called new-account : ------------------------------------------------------------ 201 [14:39] root@keltia:~# new-account new-account : Account Creation Program. Copyright (c) 1993, 94 by Ollivier Robert (roberto@keltia.frmug.fr.net) Version 1.05 PL 1 on 18/06/94. Usage: new-account [options] login fullname group [group...] Options: -m send greeting message to new user, -s shell specifies the shell to use instead of /bin/tcsh, -u uid specifies une user-id to use (default is next free in class), -a alias specifies the alias to put in /etc/aliases, -p pwd use that encrypted password, -q be quiet and do not display messages. Configuration file is /usr/local/etc/accountrc. ------------------------------------------------------------ It is for 386BSD/FreeBSD but I've tested it under BSDI 1.1 and it works fine. It supports aliases, directory creation, greeting message to the new user, automatic generation of the sendmail's userdb database... -- Ollivier ROBERT roberto@hsc.fr.net Hervé Schauer Consultants Ollivier.Robert@keltia.frmug.fr.net PERL / MIME / PGP / 4.4BSD FreeBSD keltia 1.1.5(RELEASE) RELEASE#0 i386