Shaul Karl wrote:
2.2 When the source for command is under control, what is the best wayPut the password in a file, and give the file name on the command line. That is the only way I can think of that has no races.
to hide the password while still being able to read it in the command line?
Of course, anyone with read access to the file can still get the password, but as you have seen in the other answers, that's the case anyways.
Then again, if not only the source, but also the design is under your control, you may be able to do more interesting tricks. Things such as the ssh public-key authentication. Just remeber, whatever you do that is automatic, anyone with read access to the same source will still be able to do. There is no way around that.
-- Shachar Shemesh Lingnu Open Source Consulting ltd. http://www.lingnu.com/
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]