Pass parameters to a script securely
Posted
by codeholic
on Server Fault
See other posts from Server Fault
or by codeholic
Published on 2010-04-21T18:59:35Z
Indexed on
2010/04/21
19:03 UTC
Read the original article
Hit count: 222
What is the best way to pass parameters to a forked script securely? E. g. passing parameters through command line operands is not secure, since someone who has an account on the host can run ps
and see them.
Unnamed pipe is quite secure, as far as I understand, isn't it? I mean, passing parameters to STDIN
of the forked process.
What about passing parameters in environment vars? Is it secure?
What about passing parameters by other means I didn't mention?
© Server Fault or respective owner