Re: useradd -p question

2017-07-19 Thread Steven Miano
You're one hundred percent correct - MD5 hashed is pretty terrible, the stack exchange posts with salts and sha512 examples are far more desirable for certain. On Wed, Jul 19, 2017 at 4:18 PM, David Sommerseth < sl+us...@lists.topphemmelig.net> wrote: > On 19/07/17 02:50, Steven Miano wrote: > >

Re: useradd -p question

2017-07-19 Thread David Sommerseth
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.

Re: useradd -p question

2017-07-18 Thread Steven Miano
​​usermod -p $(openssl passwd -1 ${SOME_TEXT}) ${USERNAME_HERE} And seemingly useradd would use the same syntax. On Tue, Jul 18, 2017 at 8:47 PM, Todd Chester wrote: > Hi All, > > Is there a way to add include a new user's password > when creating his account with `useradd`. There is a "-p" >

useradd -p question

2017-07-18 Thread Todd Chester
Hi All, Is there a way to add include a new user's password when creating his account with `useradd`. There is a "-p" option, but it requires and "encrypted password". And I have no idea what that would be. I only know his actual password. And including his actual password gets you some unkno