I don't get why everyone seems to suggest echoing your password and piping it to mkpassword. To my mind this only makes sense in a programmatic use-case where one wants to avoid the script from showing a prompt.
But when generating your password manually using mkpasswd interactively has one security advantage: you don't leave your clear-text password in your history!
So instead of echo "the password" | mkpasswd --stdin one would better just use mkpassword … IMHO.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I don't get why everyone seems to suggest echoing your password and piping it to
mkpassword
. To my mind this only makes sense in a programmatic use-case where one wants to avoid the script from showing a prompt.But when generating your password manually using
mkpasswd
interactively has one security advantage: you don't leave your clear-text password in your history!So instead of
echo "the password" | mkpasswd --stdin
one would better just usemkpassword …
IMHO.