useradd and crypt
David Bandel
david.bandel
Wed Oct 4 18:45:05 PDT 2006
On 10/4/06, Michael Hipp <Michael at hipp.com> wrote:
> 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?
ALL are correct. You need only one. The salt is contained in the
crypt. But unless you need crypt (e.g., old NFS version), use md5.
Ciao,
David A. Bandel
--
Focus on the dream, not the competition.
- Nemesis Air Racing Team motto
More information about the Linux-users
mailing list