#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 Resolution: | Keywords: ps command Blocked By: | Blocking: Has a Patch: 1 | Platform: All -------------------------------------+------------------------ Comment (by Prasad): After applying the attached patch {{{ ~> su - prasad Welcome to the Haiku shell. ~> id uid=1000(prasad) gid=100(users) groups=100(users) ~> ps Team Id #Threads Gid Uid kernel_team 1 36 0 0 /bin/sh /boot/system/boot/Bootscript 36 1 0 0 /boot/system/servers/registrar 53 7 0 0 /boot/system/servers/debug_server 58 2 0 0 /boot/system/servers/net_server 61 4 0 0 /boot/system/servers/app_server 62 33 0 0 /boot/system/servers/syslog_daemon 77 2 0 0 /boot/system/servers/input_server 89 9 0 0 /boot/system/servers/mount_server 100 1 0 0 /boot/system/Tracker 114 8 0 0 /boot/system/Deskbar 115 5 0 0 /boot/system/servers/media_server 116 6 0 0 /boot/system/servers/midi_server 117 3 0 0 /boot/system/servers/print_server 118 2 0 0 /boot/system/servers/cddb_daemon 120 1 0 0 /boot/system/servers/notification_server 121 2 0 0 /boot/system/servers/power_daemon 122 1 0 0 /boot/system/servers/media_addon_server 156 8 0 0 /boot/system/apps/Terminal 225 4 0 0 /bin/bash -l 232 1 0 0 /bin/bash 286 1 100 1000 /boot/apps/Pe/Pe 372 5 0 0 /bin/mimeset -f /boot/system/documentation 373 1 0 0 /bin/ps 397 1 100 1000 ~> ps -a --------------------------------------------------------------------------- Team Id #Threads Gid Uid /bin/bash -l 232 1 0 0 Thread Id State Prio UTime KTime bash 232 wait 10 116 1000 --------------------------------------------------------------------------- Team Id #Threads Gid Uid /bin/bash 286 1 100 1000 Thread Id State Prio UTime KTime bash 286 wait 10 183 1483 --------------------------------------------------------------------------- Team Id #Threads Gid Uid /bin/sh /boot/common/boot/post_install/mime_update.sh 320 1 0 0 Thread Id State Prio UTime KTime sh 320 wait 10 84 880 --------------------------------------------------------------------------- Team Id #Threads Gid Uid /bin/ps -a 403 1 100 1000 Thread Id State Prio UTime KTime ps 403 run 10 13 204 --------------------------------------------------------------------------- }}} -- Ticket URL: <http://dev.haiku-os.org/ticket/8995#comment:2> Haiku <http://dev.haiku-os.org> Haiku - the operating system.