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 Henderson wrote: > On 2009-08-05, Philip Guenther wrote: >> On Wed, Aug 5, 2009 at 4:10 AM, Toni Mueller wrote: >>> On Sat, 01.08.2009 at 17:13:43 +0300, Jussi Peltola wrote: Why should fork touch user id's? >>> >>> I was under the impression that only

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

2009-08-07 Thread Stuart Henderson
On 2009-08-05, Philip Guenther wrote: > On Wed, Aug 5, 2009 at 4:10 AM, Toni Mueller wrote: >> On Sat, 01.08.2009 at 17:13:43 +0300, Jussi Peltola 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

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 Mueller wrote: > On Sat, 01.08.2009 at 17:13:43 +0300, Jussi Peltola 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. Make a note that what

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

2009-08-05 Thread Henning Brauer
* Toni Mueller [2009-08-05 13:18]: > On Sat, 01.08.2009 at 17:13:43 +0300, Jussi Peltola 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. *sigh* fork does not change uids. n

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 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 appear to be ref

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. http://search.cpan.org/~tlbdk/Privileges-Drop-1.01/lib/Priv

[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 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 the effective user