After updating debian lenny, ps stops recognising my users

Posted by William Coates on Server Fault See other posts from Server Fault or by William Coates
Published on 2011-01-14T12:39:41Z Indexed on 2011/01/16 4:54 UTC
Read the original article Hit count: 304

Filed under:
|
|

Since upgrading my debian lenny box with apt-get, ps seems to be behaving strangely, and also if i run top i see under the user column the ids, not the names.

whoami => foo
ps -U foo => ERROR: User name does not exist.

I get this output when I run "strace -e trace=open ps -U foo 2>&1 | less", seems just this /usr/lib/libnss_compat.so.2 doesnt exist:

open("/etc/mtab", O_RDONLY)             = 3
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
open("/proc/self/stat", O_RDONLY)       = 3
open("/proc/uptime", O_RDONLY)          = 3
open("/etc/nsswitch.conf", O_RDONLY)    = 4
open("/etc/ld.so.cache", O_RDONLY)      = 4
open("/lib/libnss_compat.so.2", O_RDONLY)=4
open("/usr/lib/libnss_compat.so.2", O_RDONLY)=-1 ENOENT (No such file or directory)
open("/proc/self/stat", O_RDONLY)= 4                                       

© Server Fault or respective owner

Related posts about debian

Related posts about lenny