From owner-freebsd-isp Tue Sep 29 06:21:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA19436 for freebsd-isp-outgoing; Tue, 29 Sep 1998 06:21:51 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from support.euronet.nl (support.euronet.nl [194.134.32.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA19431 for ; Tue, 29 Sep 1998 06:21:49 -0700 (PDT) (envelope-from sake@euronet.nl) Received: (from sake@localhost) by support.euronet.nl (8.8.5/8.6.12) id PAA05001; Tue, 29 Sep 1998 15:21:26 +0200 (CEST) From: Sake Blok Message-Id: <199809291321.PAA05001@support.euronet.nl> Subject: Re: Adding Hundreds Of Users In-Reply-To: from Paul Stewart at "Sep 29, 98 08:17:27 am" To: paul@kawartha.com (Paul Stewart) Date: Tue, 29 Sep 1998 15:21:26 +0200 (CEST) Cc: freebsd-isp@FreeBSD.ORG Reply-To: sake@nl.euro.net X-URL: http://www.euronet.nl/~sake/ X-quote: To err is human, to moo bovine. X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org According to Paul Stewart: > > I'm looking for a simple method of adding hundreds of users to a FreeBSD > box. I can obtain a listing of username, password (one to each line in a > text file) by exporting a database on another O/S. Can this be pumped > into a simple script or does adduser itself accept complete command line > variables? >From 'man adduser': ADDUSER(8) FreeBSD System Manager's Manual ADDUSER(8) NAME adduser - command for adding new users SYNOPSIS adduser [-batch username [group,[group,...]] [fullname] [password]] [-check_only] [-config_create] [-dotdir dotdir] [-group login_group] [-h | -help] [-home home] [-message message_file] [-noconfig] [-shell shell] [-s | -silent | -q | -quiet] [-uid uid_start] [-v | -verbose] [...] Yes, it does accept commandline variables. Sake -- Sake Blok * * EuroNet Internet Manager Implementation Team * * Herengracht 208 - 214 * 1016 BS Amsterdam E-mail: sake@nl.euro.net * Tel: +31 20 535 55 55 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message