Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 200734

Summary: sys-process/procps-3.2.7 - ps doesn't convert all IDs to username
Product: Gentoo Linux Reporter: mobidyc <mobidyc>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: mobidyc
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description mobidyc 2007-11-29 10:24:58 UTC
Hi,

in ps some accounts are username, others are IDs.

example for two accounts:
#> cut -d: -f1,3 /etc/passwd |egrep "mobidyc|hald"
haldaemon:104
mobidyc:1000

#> ps -eo user,args |egrep "hal|104|mobidyc|1000" |grep -v root
104      /usr/sbin/hald --use-syslog --verbose=no
104      hald-addon-keyboard: listening on /dev/input/event0
104      hald-addon-keyboard: listening on /dev/input/event1
104      hald-addon-keyboard: listening on /dev/input/event2
104      hald-addon-keyboard: listening on /dev/input/event4
104      hald-addon-keyboard: listening on /dev/input/event5
104      /usr/libexec/hald-addon-acpi
mobidyc  /usr/bin/gkrellm2

(note this is the same result with "ps -ef" and "ps aux".)
the more strange is with the same command but the args field:
#> ps -eo user |egrep "hal|104|mobidyc|1000" |grep -v root     
haldaemon
haldaemon
haldaemon
haldaemon
haldaemon
haldaemon
haldaemon
mobidyc

i've ran pwck without error.

sys-process/procps-3.2.7
Linux argon 2.6.22-gentoo-r6 #1 Fri Nov 9 21:45:18 CET 2007 i686 AMD Athlon(tm) XP 2800+ AuthenticAMD GNU/Linux

this problem is always reproducible.

--
Regards,
Mobidyc
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-29 11:07:56 UTC

*** This bug has been marked as a duplicate of bug 86821 ***