Here is the second version of my required password change script. Added automated salt and password generation functionality, and removed the use of temp files.
If anyone knows how this can be optimized or improved, please comment. I'm still learning bash scripting and any help is appreciated.
Code:
#!/bin/bash
#Defines
SALT_CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
SALT_LENGTH="2"
PW_CHARS="1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$%^&*()."
...