I'm developing an application which is distributed on a VM. The default password is always the same, but it's hash in /etc/shadow changes with every release. How can I programmatically (e.g., from a bash script) find out whether the password was changed? Checking the hash is not an option because if the password was changed to something else and back, it will be different. I also want to keep the check as simple as possible.
How do I determine if the linux password was changed?
centos;rhel;password