[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: howto ecrypt passwords for adduser -batch



encrypt  :)

$ usermod -p"`encrypt zepassword`" user
is what i use in command line scripts to change a user's password

----- Original Message -----
From: "Oliver Bode" <oliver@x509security.com>
To: <misc@openbsd.org>
Sent: Tuesday, June 04, 2002 3:18 PM
Subject: howto ecrypt passwords for adduser -batch


> Hi,
>
> The adduser manpage states: "Enter batch mode in which multiple users are
> specified on the command-line in a compact format.  By default the
password
> is  assumed to already be properly encrypted."
>
> My /etc/login.conf file has the line "localcipher=blowfish,6:\"
>
> I assume that I must use the blowfish algorithm with 6 rounds to encrypt
the
> password prior to using adduser -batch
>
> How do I encrypt the password with blowfish using 6 rounds, and do I need
a
> key?