useradd and crypt

Michael Hipp Michael
Wed Oct 4 16:35:27 PDT 2006


David Bandel wrote:
> On 10/3/06, Michael Hipp <Michael at hipp.com> wrote:
> [snip]
>> I get a different result on every run and none of them match what is in
>> /etc/shadow for known passwords. Also tried --crypt-md5 with similar results.
>> So how do you get it to match what passwd would produce so that the input to
>> the useradd command would be correct for /etc/shadow?
> 
> <sigh>
> You've obviously been playing with Windoze and kindergarten
> cryptography for too long.
> 
>...
> Trust me, the crypts are good.

<sigh>
I wasn't questioning whether the crypts were "good". That is assumed. My 
question - poorly asked - was which crypt is the "correct" one. In other 
words, what options do I supply to crypt to get something that is appropriate 
for the adduser command?

Michael



More information about the Linux-users mailing list