From owner-freebsd-isp Tue Sep 29 23:29:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA03291 for freebsd-isp-outgoing; Tue, 29 Sep 1998 23:29:31 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from topgun.asiapac.net ([202.188.0.106]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA03279 for ; Tue, 29 Sep 1998 23:29:29 -0700 (PDT) (envelope-from sckhoo@asiapac.net) Received: from asiapac.net ([202.160.12.62]) by topgun.asiapac.net (Netscape Messaging Server 3.52) with ESMTP id AAA2E6E; Wed, 30 Sep 1998 14:25:51 +0800 Message-ID: <3611CE73.CAEE04AA@asiapac.net> Date: Wed, 30 Sep 1998 14:23:47 +0800 From: Swee-Chuan Khoo X-Mailer: Mozilla 4.05 [en] (Win95; I) MIME-Version: 1.0 To: Satya Devireddy CC: Paul Stewart , freebsd-isp@FreeBSD.ORG Subject: Re: Adding Hundreds Of Users References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Satya Devireddy wrote: > > 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? > I did a test about 3 months back adding 10000 users. > I took the script about aout 1.5 days to complete!!! (over the weekend) > where as deleteing them took about 8hrs. can we use pwd_mkdb to do that? this will create pwd.db and spwd.db and by using scripts to create your normal passwd & master.passwd. i think this will only take a fraction of the time. just my RM0.02 -- Swee-Chuan Khoo, sckhoo@asiapac.net | Not only do i speak for http://www.asiapac.net/~sckhoo/ | myself; I am myself ------------------------------------------------------------- "Freedom is never voluntarily given by the oppressor; it must be demanded by the oppressed." -Martin Luther King, Jr. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message