[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding new users automatically
I have used (not on OpenBSD, but on FreeBSD) a program called pspg
(generates random passwds), it's just a .c source file, so it should compile
fine on OpenBSD (I have also used it @ a SuSE Linux). What I needed is to
generate accounts on a FreeBSD box, and all this accounts where already
generated for QMail in another box. So I wrote down some perl script to
generate those accounts (based on a text file with the account name one by
line) and mail their passwd on that box. I've used pw for creating the
accounts (I know it's not at OpenBSD but migrating would not be difficult)
and nmh for talking directly to the mailserver where this people have their
accounts.
If you think it's useful, tell me and I will mail you the code.
Franco Galian
PS: pspg code is here is available at
http://members.nbci.com/_XMCM/miscreants/progs.html
----- Original Message -----
From: "Paolo Supino" <paolo@optivera.com>
>
>
> Hi
>
> I'm trying to automate the addition of new users (I'm fed up with
> having to run 'adduser' every time a new employee joins the company
> (which is pretty frequent). What are my options (without having to
> invent anything if possible)?