Best practices for holding passwords in shell / Perl scripts?

前端 未结 13 1185
逝去的感伤
逝去的感伤 2021-02-08 02:19

I\'ve recently had to dust off my Perl and shell script skills to help out some colleagues. The colleagues in question have been tasked with providing some reports from an inter

13条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-08 02:41

    In UNIX, I always make these scripts setuid and store the user and password info in a file that's heavily protected (the entire directory tree is non-readable/searchable by regular users and the file itself is readable only by the owner of the script).

提交回复
热议问题