When the command 'ps -ef' is executed, the output display the UID number instead of ADusername (highlighted in red). ‘getent’ and ‘adquery user’ command return as expected.
# adquery user <ADusername> <ADusername>:x:784368896:784368896<ADusername>:/home/<ADusername>:/bin/bash
Cause:
The length of the ADusername/local username is more than 8 characters. The ‘ps –ef’ command will show UID instead. This appears to be procps default behavior and it is by design (RedHat).
Resolution:
Please raise the issue to RedHat support.
Provide the following snippet of procps source code when raising the issue to RedHat support:
// 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 like it. // // 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 // static int do_pr_name(char *restrict const outbuf, const char *restrict const name, unsigned u){…..