Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2002 18:38:12 +0200 (CEST)
From:      Lukas Ertl <l.ertl@univie.ac.at>
To:        Jamie Heckford <jamie@tridentmicrosystems.co.uk>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Creating Passwords from a perl script
Message-ID:  <20020528183704.E42679-100000@leelou.in.tern>
In-Reply-To: <024301c20663$2795e8a0$4464a8c0@JAMIEHECKFORD>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 28 May 2002, Jamie Heckford wrote:

> Im trying to have the passwords on our FreeBSD boxen created by a perl
> script.
>
> Currently... the username/pass pairs are stored in a MySQL database. Easy
> enough to get them, but
> does anyone know a perl method of creating them in /etc/passwd? I know
> getpwent grabs values - im looking for a putpwent if
> there is such a thing and in the encrypted password form :)

Have a look at pw(8), it has an option "-h" which might by useful in your
case.

regards,
le

--=20
Lukas Ertl                             eMail: l.ertl@univie.ac.at
UNIX-Systemadministrator               Tel.:  (+43 1) 4277-14073
Zentraler Informatikdienst (ZID)       Fax.:  (+43 1) 4277-9140
der Universit=E4t Wien                   http://mailbox.univie.ac.at/~le/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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