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

Re: howto ecrypt passwords for adduser -batch



of course, this is not to use on a multi user box.
I use this on the webserver where no user has access to a shell.
It was just to illustrate how we use encrypt  ;)

----- Original Message ----- 
From: "Todd C. Miller" <Todd.Miller@courtesan.com>
To: "veins" <veins@skreel.org>
Cc: "Oliver Bode" <oliver@x509security.com>; <misc@openbsd.org>
Sent: Tuesday, June 04, 2002 6:21 PM
Subject: Re: howto ecrypt passwords for adduser -batch 


> In message <001301c20bce$bb13a2f0$0403a8c0@guinness>
> so spake "veins" (veins):
> 
> > $ usermod -p"`encrypt zepassword`" user
> > is what i use in command line scripts to change a user's password
> 
> Note that putting the unencrypted password on the command line
> allows other users to view it via ps(1).  This is probably not
> something you want to do on a multi-user machine.  Instead you can
> use the '-p' flag or just pass the string to encrypt on the stdandard
> input.
> 
>  - todd