1
I have a bash script, which executes a Java file. This Java file connects to an online service, and it requires that as one of the parameters I give it my password for the service. I feel uncomfortable typing my password out in the bash file, for anybody to see. Is there any way for me to "hide" the password in the bash file, encrypt it or something?
I have a cron job running the script, so does Cron have it's own user? – Lenny K – 2011-09-01T23:58:12.713
If the cron job's in your personal crontab, then it runs with your own user account. – user1686 – 2011-09-02T00:12:23.973
Ok, cool. thanks. Also, in
chmod
, what is thego-
for? – Lenny K – 2011-09-02T00:20:50.5701It removes (therefore
-
) rwx permissions for the group (g
) and others (o
), i.e., everyone except the owner. – Ben Kraft – 2011-09-02T00:26:07.930Owner would be "u", user. ugo=a, or all. – Daniel Beck – 2011-09-02T05:19:21.400