If you are on a linux box, try 'ps e'! On other systems I don't know the parameter.
Your other point would be deserved, if we wouldn't talk about ksh (or bash for that matter).
Echo is an internal command and will not be shown as a separate process, but as fork
of the ksh. No params to see here, please go away;-) | [reply] |
Yep, 'ps e' shows loads of parameters. All those in the shell .rc file, and sundry that are also put in at various stages by anything else the shell uses.
Now, however, unless someone is willing to pull out all the set env variables by this method, and get the relevant spam, just to catch out this guy, then it's all but invisible.
If it's a case of this is too visible for the poster, then, so be it, I just feel that it's 'within reasonable bounds' of not being visible to ps, and all the commonly used forms.
Malk
| [reply] |
Security through obscurity is always fatal.
| [reply] |
'ps e' only shows the environment for your own processes, if someone untrustworthy is running ps with your uid you've got bigger problems than whether he can parse the output and find some variables in it.
| [reply] |
Absolutely.
Time to put this thread to bed I think.. I misread your posting slightly about the ps showing through with the e arg to it.
End of day here (UK) makes me a little less likely to read the fine print, so you have my apoligies for getting the wrong end of the stick about what you were trying to say.
The point I had in my mind was that the echoing was invisible to anything I had, and I got the line about the env showing up in ps from that echo you wrote.
From there on, I guess I fixed in a more narrow minded view on what you'd said.
Apologies for that
It looks like we were both trying to say the same thing, with me not being quite so clear about it. :)
Hopefully I've not caused offense
The point of view I have with ps e is also coloured by the fact that where I work, there are several user IDs that have generic access to a great many people (for legacy reasons that grew up with it being a volunteer effort for about 7 years before it went commercial), thus many people would be able to see.
Next time, feel free to tell me to wake up or something.:)
Cheers,
Malk
| [reply] |