Technical article 126976

"ps -f" does not convert numerical UIDs to NIS user names

OpenServer 6.0.0UnixWare 7.1.1UnixWare 7.1.2UnixWare 7.1.3UnixWare 7.1.4

Written · Last revised

Problem

If NIS users are running processes on a system, then "ps -f" output will show numerical ids instead of user names. Also, "ps -u joe" where joe is an NIS user, will not display any ps entries.

Cause

The ps command is not properly updating its cache of UID-to-login mapping data to provide the invoker of ps with the most up-to-date information on NIS users.

Solution

This problem has been reported to SCO Engineering.  In
UnixWare 7, this problem will be fixed in the next
Maintenance Pack.  At the time of this writing, the latest
Maintenance Pack available is MP3; the problem will be
fixed in MP4.  In OpenServer 6, this problem is fixed in
OpenServer 6 Maintenance Pack 3.

As a workaround, you can remove the /etc/ps_data file. Although the ps command will revert to its old behavior eventually, invoking the ps command immediately after removing this file will yield the desired output.

From the Xinuos technical article database, record 126976. Reproduced with permission. The original is at www.sco.com/ta/126976, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.