Bug 182149 - haldaemon userid in ps auxf looks odd.
Summary: haldaemon userid in ps auxf looks odd.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: procps
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Brian Brock
URL:
Whiteboard:
: 181998 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-02-20 19:56 UTC by Dave Jones
Modified: 2015-01-04 22:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-23 21:18:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dave Jones 2006-02-20 19:56:34 UTC
(14:25:42:davej@nwo:~)$ ps aux | grep hal
68        2634  0.0  0.3  15944  3632 ?        Ss   Feb19   0:01 hald
root      2635  0.0  0.1  10320  1048 ?        S    Feb19   0:00 hald-runner
root      2642  0.0  0.0   7308   752 ?        S    Feb19   0:00
/usr/libexec/hald-addon-acpi
68        2648  0.0  0.0   8376   888 ?        S    Feb19   0:00
/usr/libexec/hald-addon-keyboard
root      2661  0.0  0.0   7312   748 ?        S    Feb19   0:00
/usr/libexec/hald-addon-storage
davej    19316  0.0  0.0   3924   600 pts/6    S+   14:27   0:00 grep hal


68 looks funny. Should be 'haldaemon' ?

Comment 1 Matthias Clasen 2006-02-23 19:30:26 UTC
The same happens with beagleindex

Comment 2 Matthias Clasen 2006-02-23 19:41:15 UTC
Seems to be a stupid length limitation in ps.
Changing dbus to dbuuuuuus makes it disappear from ps aux output too

Comment 3 Karel Zak 2006-02-23 21:18:11 UTC
Why do long usernames get printed as numbers?

procps FAQ:

Why do long usernames get printed as numbers?

The UNIX and POSIX standards require that user names and group names be printed
as decimal integers when there is not enough room in the column. Truncating the
names, besides being a violation of the standard, would lead to confusion
between names like MichelleRichards and MichelleRichardson. The UNIX and POSIX
way to change column width is to rename the column:

     ps -o pid,user=CumbersomeUserNames -o comm

The easy way is to directly specify the desired width:

     ps -o pid,user:19,comm


The current width of the USER column is 8 cells (it's probably classic UNIX
username limitation). I think we should use shorter usernames for system accounts. 

Well, we can enlarge the column, but I'm pretty sure that we will see bug
reports from people who run scripts where is expected this size. My experience
is that our uses (and RHEL custumers;-) are really sensitive to 'ps' output.

Please, reopen the bug if you think that the problem should be fixed by procps.
Thanks.


Comment 4 Karel Zak 2006-03-23 13:00:09 UTC
*** Bug 181998 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.