Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Aug 1997 12:45:49 -0600
From:      John-David Childs <jdc@denver.net>
To:        Paul.Dekkers@cgu.edusurf.nl
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how do I add many users simple, and how many users on 1 sys?
Message-ID:  <19970825124549.33625@denver.net>
In-Reply-To: <Pine.LNX.3.96.970825153210.124F-100000@gromit.nev.ml.org>; from Paul Dekkers on Mon, Aug 25, 1997 at 03:36:23PM %2B0200
References:  <Pine.LNX.3.96.970825153210.124F-100000@gromit.nev.ml.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday August 1997, Paul Dekkers <paul@nev.ml.org>
 had this to say about "how do I add many users simple, and how many users
 on 1 sys?": 

> Hi
> 
> How many accounts am I able to put on one system, 
In theory I think you can put 65534 accounts on FreeBSD 2.2X (including
the "default" accounts like root, toor, man, news, etc.)...I believe 3.0
changed the size of UID's.

> and what's the best method of making 700 accounts, with numbers from 
> 1 to 700? (and e.g. the passwords for users 1-100 disabled, 101-200
> something like "safe", and so on?) The gecos field can be the user 
> number (, but is there also a simple method to take the names from a
> database? (e.g. file with number:name))

The 'pw' command should do everything you want.  You can write a *sh
script (sh, csh, etc.) or you could use Perl to do most everything you
want.  See also the 'adduser' program (a perl script).

-- 
John-David Childs (JC612)       Enterprise Internet Solutions
System Administrator            @denver.net/Internet-Coach/@ronan.net
  & Network Engineer            901 E 17th Ave, Denver 80218
As of this^H^H^H^H next week, passwords will be entered in Morse code.



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