From owner-freebsd-hackers Tue Jan 3 06:13:33 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id GAA17835 for hackers-outgoing; Tue, 3 Jan 1995 06:13:33 -0800 Received: from ibp.ibp.fr (ibp.ibp.fr [132.227.60.30]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id GAA17829 for ; Tue, 3 Jan 1995 06:13:30 -0800 Received: from blaise.ibp.fr (blaise.ibp.fr [132.227.60.1]) by ibp.ibp.fr (8.6.8/jtpda-5.0) with SMTP id PAA29642 ; Tue, 3 Jan 1995 15:13:50 +0100 Received: by blaise.ibp.fr (4.1/SMI-4.1) id AA11533; Tue, 3 Jan 95 15:14:02 +0100 From: roberto@blaise.ibp.fr (Ollivier ROBERT) Message-Id: <9501031414.AA11533@blaise.ibp.fr> Subject: Re: New adduser script To: jkh@time.cdrom.com (Jordan K. Hubbard) Date: Tue, 3 Jan 1995 15:14:01 +0100 (MET) Cc: wosch@cs.tu-berlin.de, hackers@freebsd.org In-Reply-To: <10434.789137215@time.cdrom.com> from "Jordan K. Hubbard" at Jan 3, 95 04:46:55 am X-Mailer: ELM [version 2.4 PL23beta2] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 2118 Sender: hackers-owner@freebsd.org Precedence: bulk > I've always thought that competition bred innovation.. :-) Mine is too big to post : 122 accountrc 19 groupdefs 904 new-account.pl 1045 total But it is able to manage sendmail aliases, sendmail userdb entries, finds uid holes, multiple groups, and so on. I've rewritten the configuration routine and will add an option to insert /etc/uucp/sys entries for UUCP sites. I'll put the whole archive on freefall. ------------------------------------------------------------ new-account.pl : Account Creation Program. Copyright (c) 1993, 94 by Ollivier Robert (roberto@keltia.frmug.fr.net) Version 1.06 on 03/12/94. Usage: new-account.pl [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/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. ------------------------------------------------------------ The group definition file (new) has the following format : # config file for new-account(8) # # Defines the different groups available # # (c) 1993,94 by Ollivier Robert (roberto@keltia.frmug.fr.net) # # $Id$ # # Here lie the group descriptions # # format is : # # group_name = ( uid_min-uid_max base_dir def_shell options ) # staff = ( 100-199 /users/staff /bin/tcsh mail,alias,userdb ) copains = ( 200-499 /users/copains /bin/tcsh mail,alias,userdb ) uucp = ( 500-599 /var/spool/uucp /usr/libexec/uucp/uucico nodir ) slip = ( 600-699 / /usr/sbin/sliplogin nodir ) ppp = ( 700 799 / /usr/local/sbin/ppplogin nodir ) -- Ollivier ROBERT -=- FreeBSD: the daemon is FREE! -=- roberto@FreeBSD.ORG FreeBSD keltia 2.1.0-Development #2: Thu Dec 29 20:28:18 1994 roberto@keltia:/usr/src/sys/compile/KELTIA ctm#235