[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: howto ecrypt passwords for adduser -batch
$ usermod -p"`encrypt zepassword`" user
is what i use in command line scripts to change a user's password
----- Original Message -----
From: "Oliver Bode" <email@example.com>
Sent: Tuesday, June 04, 2002 3:18 PM
Subject: howto ecrypt passwords for adduser -batch
> The adduser manpage states: "Enter batch mode in which multiple users are
> specified on the command-line in a compact format. By default the
> 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
> password prior to using adduser -batch
> How do I encrypt the password with blowfish using 6 rounds, and do I need