SCIENTIFIC-LINUX-USERS Archives

July 2017

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
David Sommerseth <[log in to unmask]>
Reply To:
Date:
Wed, 19 Jul 2017 22:18:51 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
On 19/07/17 02:50, Steven Miano wrote:
> ​​usermod -p $(openssl passwd -1 ${SOME_TEXT}) ${USERNAME_HERE}

Eeeek!  -1 gives MD5 hashed passwords! Don't do that!  MD5 is considered
broken and very weak!


There's some Python and Perl examples here which gives SHA512 based
password hashes.

<https://unix.stackexchange.com/questions/52108/how-to-create-sha512-password-hashes-on-command-line>


-- 
kind regards,

David Sommerseth

ATOM RSS1 RSS2