'ps aux' displays users as uids, instead of username
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
'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?
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
returns for me
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.
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.
Would it have anything to do with the length of the username?
Yes.
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.
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.
If this actually is the case, I'll have to assume that I simply didn't notice it until after I performed the update.
P.S. "myusername" is not the real name, but the real one is more than 8 characters.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.