Reputation: 51
I have move ksh script to bash. This script have line which I can't understood:
pgp -z <pwd> +force $NAME1
Can any one help me to find what means or what it's role in this line? -z option used to pass password into pgp. So possibly could be variable with password. But string pwd is used only once in this script. Maybe it's just redirect or some global variable?
Upvotes: 0
Views: 60
Reputation: 51
I contacted person, who wrote these scripts and send them to me. It's not password, it's just text. He replaced passwords in all scripts to <pwd>, and forgot to log this in documentation...
Upvotes: 0
Reputation: 10360
I believe it's just a text placeholder for the actual password, meaning "replace me with the actual password when you use this script" or perhaps: "replace me with the actual password when you use this script, if you don't care about security and don't mind hardcoding your password for all to see".
EDIT: Is it possible the script was in the middle of being worked on and the developer had not yet figured out a secure way of supplying the passphrase and just used that for a placeholder in the meantime? I found this interesting description of the -z argument here:
Enter pass phrase on command line
pgp -z "you really shouldn't ought to do this"
Upvotes: 1