Opened 12 years ago
Closed 12 years ago
#8995 closed bug (fixed)
ps displays incorrect uid and gid
Reported by: | Prasad | Owned by: | leavengood |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/Command Line Tools | Version: | R1/Development |
Keywords: | ps command | Cc: | prasadjoshi.linux@… |
Blocked By: | Blocking: | ||
Platform: | All |
Description
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.
Attachments (1)
Change History (6)
by , 12 years ago
Attachment: | 0001-ps-fix-uid-and-gid-in-the-ps-output.patch added |
---|
comment:1 by , 12 years ago
patch: | 0 → 1 |
---|
comment:2 by , 12 years ago
comment:3 by , 12 years ago
Component: | Applications/Terminal → Applications/Command Line Tools |
---|---|
Owner: | changed from | to
Version: | R1/alpha3 → R1/Development |
comment:5 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | in-progress → closed |
Patch applied in hrev44677. Thanks again!
Note:
See TracTickets
for help on using tickets.
After applying the attached patch