Do you know where your variables are? | |
PerlMonks |
Re: Accessing passwords in a scriptby FreeBeerReekingMonk (Deacon) |
on Mar 26, 2017 at 15:33 UTC ( [id://1185987]=note: print w/replies, xml ) | Need Help?? |
roll with it. however, I see another danger:
At some point, admins will get lazy and not want to log in and restart the thing again and again, so they hardcode the password somewhere. rule 1: make sure it is stable and does not need much restarting.
In most cases, you log the error, then die. And a process-monitor/helpdesk should pick up it's absence. Some ideas for the latter case:
Daemon detects it starts password-less, and without a TTY to ask for $pwd=<STDIN> You run a local small sendpwd perlscript that:
0. Does not show the password with ps -ef
The obvious solution was a special https web-page where you can input your password, but that was deemed undesirable by audit. figures.
In Section
Seekers of Perl Wisdom
|
|