Updating a Shadow file password through a script
I have to connect into multiple Linux and UNIX boxes. My account password expires every 45 days. I would like to create a script utility to update the shadow file with the proper HASH for my new passwords monthly, but I cannot figure out how to get the proper HASH. Does anyone know how to do this?
I have seen many websites say to use "openssl passwd -1", but when I do this with my current password the result does not match what the shadow has...? |
Quote:
Instead of this: Code:
openssl passwd -1 Code:
openssl passwd -1 -salt MySalt Code:
$1$d9FPOhLP$W8tk2xdaXuHqMSCWDVNml. Code:
openssl passwd -1 -salt d9FPOhLP |
All times are GMT -5. The time now is 04:09 PM. |