2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 517
/ 1 Year ago, sat, april 1, 2023, 4:47:36
I'm using this to set passwords in a script:
usermod -p `mkpasswd -H md5 passwordText` user
I need to create an exception in my script, just in case this command fails. What file contains the encrypted password and how do I reverse the encryption so I can verify it was written to the file correctly?
Edit: I finally found the problem with the line above. The password was allowing symbols that were being interpreted as wildcards on the command line making it appear as if the command itself failed. Nonetheless, it's lead me to new things I'm glad I know now.
More From » password