for RHEL-8.10 with /etc/login.defs
having ENCRYPT_METHOD SHA512
for my local ron
account I set {as root} the password for it to also be just ron
.
As such in /etc/shadow
I have this:
ron:$6$NbmOz0kL4eKjJbwi$JE1.19BxJWh7cbZjmPPDrviuBV7l7h/Jlqz56CVqXmpttsXbz3YjhQ9Qm0CiYAY8oG4jkatTqXVgiAfbU66rR1:20377:0:99999:14:::
In trying to use the https://randommer.io/Hash/SHA512 webpage I have typed in ron
for the password text and use this for the salt: NbmOz0kL4eKjJbwi
and it gives me this
FD1C072B6D4578F30D5615F189D9317D8E24CAC2D60C0A6D280636C9035ED12A8C64F2C9F4D542C6BC4750373C6BA88745D2159428F04BB5FE068285F4B41D08
what am I doing wrong, and what is an easy/correct way whether it be in linux on the command line or using a free online tool to replicate the hash stored in /etc/shadow
for when I have set the password to be just ron
?
/etc/shadow
the chances are you're doing something wrong. In most common cases you should be invoking PAM for operations like login.