[haiku-bugs] [Haiku] #8995: ps displays incorrect uid and gid

  • From: "Prasad" <trac@xxxxxxxxxxxx>
  • Date: Mon, 17 Sep 2012 16:44:18 -0000

#8995: ps displays incorrect uid and gid
-----------------------------------+--------------------------
 Reporter:  Prasad                 |        Owner:  jackburton
     Type:  bug                    |       Status:  new
 Priority:  normal                 |    Milestone:  R1
Component:  Applications/Terminal  |      Version:  R1/alpha3
 Keywords:  ps command             |   Blocked By:
 Blocking:                         |  Has a Patch:  0
 Platform:  All                    |
-----------------------------------+--------------------------
 ps output completely ignores the uid and gid of the process.

 For example:

 {{{
 ~> id
 uid=0(user) gid=0(root) groups=0(root)

 ~> ps
 Team                                                  Id #Threads  Gid
 Uid
 ...
 ...
 /bin/bash -l                                         205        1    0
 0
 /bin/ps                                              228        1    0
 0

 ~> useradd -s /bin/bash -n "Prasad Joshi" prasad
 password for user:
 repeat password:

 ~> su - prasad

 Welcome to the Haiku shell.

 ~> ps
 Team                                                  Id #Threads  Gid
 Uid
 ...
 ...
 /boot/system/apps/Terminal                           201        4    0
 0
 /bin/bash -l                                         205        1    0
 0
 /bin/bash                                            231        1    0
 0
 /bin/ps                                              250        1    0
 0

 ~> id
 uid=1000(prasad) gid=100(users) groups=100(users)
 }}}

 Here is gid and uid of the process 231 should have been 100 and 1000
 respectively.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8995>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: