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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have a Fedora 8 system, updated with the latest packages. When I run then "ps -ef" command from a gnome-terminal, the user-name of user logged in is not displayed, but instead the associated user-id. For instance:
In this case, the user-name associated with user-id 500 is known. Similarly when I run gnome's "System Monitor" tool and examine the processes running on the system, the user-name associated with each process is displayed correctly.
When I run "ps -u MyUserId", all of the processes being run by this user are displayed.
Thus is it possible that 'ps' command has a bug? Or am I merely doing something wrong? I've been using the "ps -f" command for years and have only seen this problem when the user-name is not properly listed in /etc/passwd. From the evidence I am seeing, my system's /etc/passwd file appears to be fine.
Here's the relevant entry in /etc/passwd:
MyUserId:x:500:500:My Real Name:/home/MyUserId:/bin/bash
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Okay, at least we can say that there's something wrong with your account, not the system or ps. Other than that, I have no idea why your original account can't display your name. Is it that big of a deal, and is it affecting anything else?