'ps aux' displays users as uids, instead of username
Dunno, but for some reason, after I updated Fedora 7, ps began showing uids instead of the username. I assume this means there is some disassociation between the username and uid in some file, but it is correct in /etc/passwd. It does show 'root' processes. So, where do I go next?
|
can you confirm that running
ps u has no USER field please |
What about the output of other commands like:
ps -o uid -o "%u %U" -A or whoami or id ? Maybe you aliased ps? Or have more than one version installed ("which -a ps" to verify) |
if you have time you can check that your /bin/ps should have executable user function eg
Code:
su strings /bin/ps | grep users Please send bug reports to <feedback@lists.sf.net> or <albert@users.sf.net> a all w/ tty, including other users -t by tty r only running processes U processes for specified users List of real users must follow --User. List of effective users must follow --user. List of users must follow -u. List of users must follow U. |
Here is the output from the commands you all suggested:
Code:
$ ps u |
Did you check your aliases?
Is there any chance there is a PS_FORMAT environment variable messing you up? Try running Code:
alias | grep 'ps' |
No, no aliases for ps.
Would it have anything to do with the length of the username? |
when you upgraded, did you keep any old files from /etc?
2) did you change your login name....since you mention long username? edit added (3) do you have an entry for proc in /etc/fstab eg none /proc proc defaults 0 0 |
1. I did not upgrade. I updated. Still Fedora 7. Didn't figure I'd need to back up etc files.
2. No login name change. But the user name is 10 characters long. 3. Yes. The proc entry is in fstab. |
What about the PS_FORMAT environment variable I asked about?
Code:
set | grep '^PS_' |
Quote:
If a username is longer than 8 characters, then "ps aux" will substitute the uid for username. Your username of "myusername" is clearly longer than 8-characters. I ran into this a while back with the username of "Ajax4Hire", more than 8 and the only user to get truncated to a uid. Realized the problem and renamed myself to Ajax. boo-hoo. |
Quote:
|
Quote:
P.S. "myusername" is not the real name, but the real one is more than 8 characters. |
Quote:
Is it documented? -- I couldn't find it in the man page, at least the one on my system. |
well I have something in /usr/share/doc/procps....has a todo file in mdv 2008.1 version 3.2.7 and it mentions
under -----top---- don't truncate long usernames in the news file same pathway I have procps-3.2.2 --> procps-3.2.3 avoid truncating long usernames ----------------------------------- of course that might explain a shortening of name and not change to uid....but its start. |
All times are GMT -5. The time now is 09:51 PM. |