Adding Users

Dominic Mitchell dom at
Mon Jul 31 20:23:29 BST 2000

On Mon, Jul 31, 2000 at 11:52:15AM +0100, Steve Greenshaw wrote:
> Hi,
> I've just got a 3.4 server up and running to act as a mail server for
> over 8000 users. Previously this was a 2.2.5 server and I had a script
> that allowed me to take the contents of a file and add users from
> that, one line at a time, automatically. Each user is on one line as:
> username|realname|password
> However, the '-batch' option has been removed from 'adduser' and I
> can't get my script to work. Although I can add all the users using a
> script and 'pw', I cannot set passwords (?) and would have to also run
> 'passwd'.
> Does anyone know of / have a utility for adding users 'in bulk'?

To set the passwords, look at the autopasswd utility that comes with the
expect port (lang/expect).  It lets you change a password on the command

Once you know expect, you'll wonder how you lived without it!

Try Zope!

More information about the Ukfreebsd mailing list