|
any idea where I can get this md5 hash
script?
----- Original Message -----
From: Aaron van de Ven
Sent: Wednesday, July 03, 2002 8:15 PM
Subject: MD5 hash I am trying to do exactly the same, however -p password, then trying to login with "password" doesn't work. Did you get this to work, if so, help? :) On Sun, Jul 01, 2001 at 04:10:38PM +1000, Laurie Savage wrote:
> I am running a batch update of my users with a small script that includes
> useradd -m -p password -u uid login. The users get added with correct
> uid and correct login, but the password seems to get garbled.
>
> e.g useradd -m -p gtaskf23x -u 600 fred
>
> creates /home/fred, creates an account "fred" with uid 600, but we
> cannot login as "fred" with password gtaskf23x.
>From the useradd(8) man page:
-p passwd
The encrypted password, as returned by crypt(3).
The default is to disable the account.
You need to give it the encrypted form of the password for it to work.
Search the SLUG archives for a script to generate the MD5 hashes that
you probably need. The reason it works this way is so that anyone on
the system running "top" or similar, won't be able to see the passwords
you are giving users.
-Andrew.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
|
