Red Hat Bugzilla – Bug 135367
Output of Username not correct
Last modified: 2007-11-30 17:07:04 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.4.3)
Description of problem:
When a username is longer than 8 Character, the ps -aux command
reportes the UID and not the Username !
5000 22033 0.0 0.0 0 0 ? Z 04:00 0:00
oracle 22450 0.0 0.7 134712 19952 ? S 08:17 0:00
User oracle is displayed correctly, but User 5000 is in Passwd
definied as "interflex"
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Add user with more than 8 Chars
2. View Processtable with "ps aux"
The POSIX and UNIX standard requires this behavior.
See the man page for ways to increase the column size.
Are you sure ? Maybe, when the Colum is tuncated at 8 chars it where
okay, but it displays only the UID, that is bad.
Comments from procps code:
The Open Group Base Specifications Issue 6 (IEEE Std 1003.1, 2004
Edition) requires that user and group names print as decimal numbers
if there is not enough room in the column, so tough luck if you don't
The UNIX and POSIX way to change column width is to rename it:
ps -o pid,user=CumbersomeUserNames -o comm
The easy way is to directly specify the desired width:
ps -o pid,user:19,comm