Subject: Re: script to add users
To: Carlo Smith <postfix2002@hotmail.com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 12/03/2002 01:51:13
On Tue, 3 Dec 2002, Carlo Smith wrote:

> looking for a script to add users including homedirs, it also needs to check
> if the user already exist.

NetBSD now includes tools for this.

See the manual pages for user, useradd, userinfo, etc.

For example to add a new user with a home directory, you can use "useradd
-m username".

And to check if a user exists, "userinfo username".

Have fun!

   Jeremy C. Reed
   http://www.reedmedia.net/