[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "useradd" create password on command line?
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: "useradd" create password on command line?
- From: Ibrahim Khalifa <maillist_(_at_)_val-axs_(_dot_)_net>
- Date: Mon, 27 Aug 2001 20:59:55 +0200
On Mon, Aug 27, 2001 at 05:49:30PM -0000, Brian J. Kifiak wrote:
>> Why not have useradd encrypt a plain text password?
> I'd wager it's done as a preventitive measure to keep plaintext
> passwords out of the process table.
That was the reason when I made the patch for adduser around -98 (a long
time before useradd existed) which made it possible to use encrypted
passwords in batchmode. (yeah, yeah, it probably existed in other OS')
> Whether it's worth the inconvenience when you really want to
> do this is a matter of opinion. (Realizing that the plaintext
> password will end up in the process table anyway when using
Only if you use encrypt in the wrong way. I believe it will read from
stdin, so that would be a much better way to use it.