Re: [SOLVED, sort of] Re: 'ps auwx' and 'top': inconsistent display?

2009-08-07 Thread Stuart Henderson
On 2009-08-05, Philip Guenther guent...@gmail.com wrote: On Wed, Aug 5, 2009 at 4:10 AM, Toni Muelleropenbsd-m...@oeko.net wrote: On Sat, 01.08.2009 at 17:13:43 +0300, Jussi Peltola pe...@pelzi.net wrote: Why should fork touch user id's? I was under the impression that only the effective

Re: [SOLVED, sort of] Re: 'ps auwx' and 'top': inconsistent display?

2009-08-07 Thread patrick keshishian
On Fri, Aug 7, 2009 at 7:49 AM, Stuart Hendersons...@spacehopper.org wrote: On 2009-08-05, Philip Guenther guent...@gmail.com wrote: On Wed, Aug 5, 2009 at 4:10 AM, Toni Muelleropenbsd-m...@oeko.net wrote: On Sat, 01.08.2009 at 17:13:43 +0300, Jussi Peltola pe...@pelzi.net wrote: Why should

Re: [SOLVED, sort of] Re: 'ps auwx' and 'top': inconsistent display?

2009-08-05 Thread Toni Mueller
Hi, On Sat, 01.08.2009 at 17:13:43 +0300, Jussi Peltola pe...@pelzi.net wrote: Why should fork touch user id's? I was under the impression that only the effective userid should be inherited by a forked process, not the real user id. Also, the inconsistency in the display of the tools doesn't

Re: [SOLVED, sort of] Re: 'ps auwx' and 'top': inconsistent display?

2009-08-05 Thread Henning Brauer
* Toni Mueller openbsd-m...@oeko.net [2009-08-05 13:18]: On Sat, 01.08.2009 at 17:13:43 +0300, Jussi Peltola pe...@pelzi.net wrote: Why should fork touch user id's? I was under the impression that only the effective userid should be inherited by a forked process, not the real user id.

Re: [SOLVED, sort of] Re: 'ps auwx' and 'top': inconsistent display?

2009-08-05 Thread Philip Guenther
On Wed, Aug 5, 2009 at 4:10 AM, Toni Muelleropenbsd-m...@oeko.net wrote: On Sat, 01.08.2009 at 17:13:43 +0300, Jussi Peltola pe...@pelzi.net wrote: Why should fork touch user id's? I was under the impression that only the effective userid should be inherited by a forked process, not the real

[SOLVED, sort of] Re: 'ps auwx' and 'top': inconsistent display?

2009-08-01 Thread Toni Mueller
Hi, On Fri, 24.07.2009 at 15:09:23 +0200, Toni Mueller openbsd-m...@oeko.net wrote: I have a perl script that should work as follows: * check some parameters * drop privileges ( $ = ...; $) = ...;) it turned out that 'top' displayed the real userid which I didn't set, while 'ps' displayed

Re: [SOLVED, sort of] Re: 'ps auwx' and 'top': inconsistent display?

2009-08-01 Thread Jussi Peltola
On Sat, Aug 01, 2009 at 03:33:54PM +0200, Toni Mueller wrote: Why is the real userid inherited when using 'fork' while being switched to a different user? Why should fork touch user id's? Drop them properly yourself after forking.

'ps auwx' and 'top': inconsistent display?

2009-07-24 Thread Toni Mueller
Hello, I have a perl script that should work as follows: * check some parameters * drop privileges ( $ = ...; $) = ...;) * fork some other programs Now when I run this script and ps auwx thereafter, I see that the programs I forked are running under the user id that I specified in the script.