Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Mar 2004 19:16:02 -0500
From:      Garance A Drosihn <drosih@rpi.edu>
To:        des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= )
Cc:        freebsd-standards@freebsd.org
Subject:   Re: PATCH for a more-POSIX `ps', and related adventures
Message-ID:  <p0602044ebc828daa6e14@[128.113.24.47]>
In-Reply-To: <xzpn06bkssa.fsf@dwp.des.no>
References:  <p06020448bc824de07ab9@[128.113.24.47]> <p0602044abc8272610919@[128.113.24.47]> <xzpn06bkssa.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
At 12:22 AM +0100 3/21/04, Dag-Erling Sm=F8rgrav wrote:
>
>>  The SUSv3 standard describes an option `-U userlist':
>>       Write information for processes whose real user ID numbers
>>       or login names are given in userlist
>>  We already have a `-u`, and I even use it, so I wasn't going to
>>  steal that!  However, I did want to have this ability, so I added
>>  it as -R.  I will assume this seems reasonable.
>
>What's the difference between the existing -U and the new -R?

"real user" vs "user".  Basically, whether or not you will see
setuid programs that the user has started up.  For instance,
right now on my system:

(22) ps -x -o pid,user,uid,ruid,tt,command -U scatters
   PID USER       UID  RUID  TT  COMMAND
   919 scatters   561   561  p1  /usr/local/bin/bash
  1098 scatters   561   561  p2  /usr/local/bin/bash

(23) ps -x -o pid,user,uid,ruid,tt,command -R scatters
   PID USER       UID  RUID  TT  COMMAND
   917 root         0   561  ??  screen
  1096 root         0   561  ??  screen
   919 scatters   561   561  p1  /usr/local/bin/bash
  1098 scatters   561   561  p2  /usr/local/bin/bash

-- 
Garance Alistair Drosehn            =3D   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p0602044ebc828daa6e14>