"ps -ef" Displays UID Rather Than User Name


Contents

About This Document
Symptoms
Reasons

About This Document

This document contains the symptoms and reasons why the ps -ef command displays a UID rather than a login name. This document applies to AIX Versions 3.2 and 4.x.

Symptoms


Reasons

There are a few reasons why the ps -ef command displays a UID rather than the login name.

  1. If the process was run by a user whose name was removed from the /etc/passwd file (such as during the running process), ps will report the UID as the owner of the process.

  2. If the /etc/passwd file or the NIS master (or slave) server could not be reached at the time ps -ef was issued, the UID will replace the login name for a particular process.

  3. If the master server modifies the /etc/passwd file, the client machine will not immediately show the changes. If you add a user to the system on the master machine, the local machine will need to re-read the /etc/passwd file from the server to notice the changes. The client version of the passwd file contains only a few names and the NIS sequence at the end. Based on the modification time, the client may not see the changes.

In AIX releases prior to 3.2.4, the ps command looks at the /etc/ps_data file for the login names. If a name is not found in the ps_data file for a particular UID, the UID is displayed. To manually update the ps_data file, run the following two commands in sequence:

rm /etc/ps_data
ps U

When you remove the file, ps has to rebuild the ps_data file from the information contained in /etc/passwd. If you are finding that users are added or removed between updates of the ps_data file, you can write a cron to keep the ps_data file current (use the above two commands).

This is not an AIX defect.


*"Yellow Pages" is a registered trademark in the United Kingdom of British Telecommunications plc.
"ps -ef" Displays UID Rather Than User Name: ps.data.all.cmd ITEM: FAX
Dated: 99/03/17~00:00 Category: cmd
This HTML file was generated 99/06/24~12:42:04
Comments or suggestions?
Contact us