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 <[email protected]> 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"
> 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 unknown password that I have to redo with `passwd`
>
> Many thanks,
> -T
>
--
Miano, Steven M.
http://stevenmiano.com