Best practices for holding passwords in shell / Perl scripts?

前端 未结 13 1220
逝去的感伤
逝去的感伤 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:28

    If the script is running remotely from the server.

    1. Make your reports views
    2. Give the user you are logging into ONLY access to select on the report views
    3. Just store the password.

    That way, all that the user can do, is select the data for its report. Even if someone happened to get the password, they would be limited as to what they could do with it.

提交回复
热议问题