[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [OT?] Re: [cobalt-users] MySql
- Subject: Re: [OT?] Re: [cobalt-users] MySql
- From: flash22@xxxxxxx
- Date: Wed May 16 08:50:09 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Wed, 16 May 2001, Nico Meijer wrote:
> Hi gsh!
>
> > Here's an even better thought, /proc/pid/cmdline is readable by all ;0
>
> Hmm. You wanna elaborate on that? I'm not that good with /proc. :-(
>
> I just get a "-bash" when reading the appr. PID.
cause you are looking at your own pic, so you just see your shell..
cmdline is where the info for what px x lists comes from, it has to be
world readable, and it inclides all the command line arguments given when
starting the program, so if you put a password on the command line, anyone
who can do ps xa or read proc can see your password ;)
Here's a cheezy way to do what ps does in a shell script...
(cd /proc;for i in */cmdline; do echo $i;cat $i;echo "";done)
[Yes, you need the () above]
Fun to play with, but ps does better cleanup ;0
gsh