A technical post

Jan 07, 2010 11:38

So like I alluded to before, this will be a technical post, of interest only to people running linux and wanting to see some basic shell scripting.
You've been warned )

work how-to

Leave a comment

Comments 4

xomox January 7 2010, 21:52:17 UTC
One thing you will want to be careful of is that using the password as an argument will make the password available via ps to other users on the machine. This will also potentially make them visible in .history files. Similiarly, on several *nix variants users are able to see the environments of processes which are not owned by them. It may be safer to write a shell function which extracts the password for the appropriate db instance from the .servername_pwds and pipes it in via stdin.

Reply

Good points effendi January 10 2010, 20:49:17 UTC
Most of the machines I work at have 1 user ever on there (root and/or oracle) and no other users, but what you're suggesting is good security practice.

I'll try to work up a follow up post - thanks!

Reply


shlay January 8 2010, 16:48:35 UTC
What else do you know how to do ( ... )

Reply

I'm so not your man effendi January 10 2010, 20:48:01 UTC
my php skills for something like this wouldn't be useful. Sorry

Reply


Leave a comment

Up