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

-- 
Lukas Ertl                             eMail: [EMAIL PROTECTED]
UNIX-Systemadministrator               Tel.:  (+43 1) 4277-14073
Zentraler Informatikdienst (ZID)       Fax.:  (+43 1) 4277-9140
der Universität Wien                   http://mailbox.univie.ac.at/~le/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to