From nobody@FreeBSD.org  Tue Jun 21 06:15:12 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7185F16A41C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 21 Jun 2005 06:15:12 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5CCD843D53
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 21 Jun 2005 06:15:12 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j5L6FCLo072952
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 21 Jun 2005 06:15:12 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j5L6FC5M072951;
	Tue, 21 Jun 2005 06:15:12 GMT
	(envelope-from nobody)
Message-Id: <200506210615.j5L6FC5M072951@www.freebsd.org>
Date: Tue, 21 Jun 2005 06:15:12 GMT
From: Peter <me@example.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: top(1) in 6-CURRENT shows incorrect user
X-Send-Pr-Version: www-2.3

>Number:         82465
>Category:       bin
>Synopsis:       top(1) in 6-CURRENT shows incorrect user
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 21 06:20:06 GMT 2005
>Closed-Date:    Thu Apr 12 20:10:33 GMT 2007
>Last-Modified:  Thu Apr 12 20:10:33 GMT 2007
>Originator:     Peter
>Release:        
>Organization:
>Environment:
FreeBSD fbsd-tmp31.chello.hu 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Sat Jun 18 20:52:22 CEST 2005     toor@fbsd-tmp31.chello.hu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
$ ps auxww|grep Xorg
root    783  0.0 46.7 57884 57136  v1  S    10:38PM   0:20.85 X :0 -nolisten tcp (Xorg)
peter   970  0.0  0.8  1568  1004  p1  R+   11:36PM   0:00.02 grep Xorg
$ top -b|grep Xorg
  783 peter       1  96    0 57884K 57136K select   0:21  0.00% Xorg

ps(1) shows `root' top(1) shows `peter'
>How-To-Repeat:
      Run the above commands; same result for many processes, not just Xorg.
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Maxim Konovalov <maxim@macomnet.ru>
To: Peter <me@example.com>
Cc: bug-followup@freebsd.org
Subject: Re: bin/82465: top(1) in 6-CURRENT shows incorrect user
Date: Tue, 21 Jun 2005 10:56:42 +0400 (MSD)

 > >Description:
 > $ ps auxww|grep Xorg
 > root    783  0.0 46.7 57884 57136  v1  S    10:38PM   0:20.85 X :0 -nolisten tcp (Xorg)
 > peter   970  0.0  0.8  1568  1004  p1  R+   11:36PM   0:00.02 grep Xorg
 > $ top -b|grep Xorg
 >   783 peter       1  96    0 57884K 57136K select   0:21  0.00% Xorg
 >
 > ps(1) shows `root' top(1) shows `peter'
 > >How-To-Repeat:
 >       Run the above commands; same result for many processes, not just Xorg.
 
 ruid vs. euid.  What does "ps alo ruid,uid | grep X" say?
 
 -- 
 Maxim Konovalov

From: <me@example.com>
To: <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: bin/82465: top(1) in 6-CURRENT shows incorrect user
Date: Tue, 21 Jun 2005 11:55:00 +0000 (GMT)

 $ ps alo ruid,uid | grep X
  1001   538   537  11   8  0  1768  1264 wait   I+    v1    0:00.05 /bin/sh /usr/X11  1001  1001
     0   553   552   0  96  0 58544 57608 select S     v1    0:20.29 X :0 -nolisten t  1001     0

From: Maxim Konovalov <maxim@macomnet.ru>
To: me@example.com
Cc: bug-followup@freebsd.org
Subject: Re: bin/82465: top(1) in 6-CURRENT shows incorrect user
Date: Tue, 21 Jun 2005 16:44:30 +0400 (MSD)

 On Tue, 21 Jun 2005, 12:00-0000, me@example.com wrote:
 
 > The following reply was made to PR bin/82465; it has been noted by GNATS.
 >
 > From: <me@example.com>
 > To: <bug-followup@FreeBSD.org>
 > Cc:
 > Subject: Re: bin/82465: top(1) in 6-CURRENT shows incorrect user
 > Date: Tue, 21 Jun 2005 11:55:00 +0000 (GMT)
 >
 >  $ ps alo ruid,uid | grep X
 >   1001   538   537  11   8  0  1768  1264 wait   I+    v1    0:00.05 /bin/sh /usr/X11  1001  1001
 
 >      0 553 552 0 96 0 58544 57608 select S v1 0:20.29 X :0 -nolisten
 > t 1001 0
 
 1001 is ruid, 0 is euid.
 
 -- 
 Maxim Konovalov

From: Matteo Riondato <matteo@freebsd.org>
To: Peter <me@example.com>, bug-followup@freebsd.org
Cc:  
Subject: Re: bin/82465: top(1) in 6-CURRENT shows incorrect user
Date: Tue, 21 Jun 2005 18:58:09 +0200

 On Tue, Jun 21, 2005 at 06:15:12AM +0000, Peter wrote:
 > >Description:
 > $ ps auxww|grep Xorg
 > root    783  0.0 46.7 57884 57136  v1  S    10:38PM   0:20.85 X :0 -nolisten tcp (Xorg)
 > peter   970  0.0  0.8  1568  1004  p1  R+   11:36PM   0:00.02 grep Xorg
 > $ top -b|grep Xorg
 >   783 peter       1  96    0 57884K 57136K select   0:21  0.00% Xorg
 > 
 > ps(1) shows `root' top(1) shows `peter'
 
 Then I would say that the one showing an incorrect user is ps(1), not
 top(1). Or is the euid more important then the ruid ?
 Best Regards
 -- 
 Matteo Riondato
 FreeBSD Volunteer (http://freebsd.org)
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)

From: <me@example.com>
To: <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: bin/82465: top(1) in 6-CURRENT shows incorrect user
Date: Wed, 22 Jun 2005 20:34:39 +0000 (GMT)

 MR> Then I would say that the one showing an incorrect user is ps(1), not
 MR> top(1). Or is the euid more important then the ruid ?
 
     Well after a second thought, you want to see the user who executed the program
     in top, usually. And ps can be made to print the euid and the ruid too...
     So this doesn't seem like a problem now. It was just confusing they showed
     different users. But the ruid is more important, i agree.

From: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To: bug-followup@FreeBSD.org, me@example.com
Cc:  
Subject: Re: bin/82465: top(1) in 6-CURRENT shows incorrect user
Date: Thu, 12 Apr 2007 20:51:11 +0100

 Hi,
 
 Can this PR ( http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/82465 ) be
 closed?  It looks like you agree that the behaviour isn't actually a
 bug?
 
 Thanks,
 
 Gavin
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Thu Apr 12 20:10:31 UTC 2007 
State-Changed-Why:  
yes we can close this, the submitters mail address is bogus. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=82465 
>Unformatted:
