How to poll the username, when having the UID?
        Posted  
        
            by 
                JMW
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by JMW
        
        
        
        Published on 2012-03-26T10:33:37Z
        Indexed on 
            2012/03/26
            11:33 UTC
        
        
        Read the original article
        Hit count: 316
        
nsswitch.conf
|sssd
we're using ldap with sssd for the usermanagement, so our users are not in the "/etc/passwd"
Unfortunately, ps just shows the UIDs:
[root@xyz ~]# id jmw
uid=1582(jmw) gid=1582(jmw) groups=1582(jmw), 1000(admins)
[root@xyz ~]# ps aux
[..cutting some output..]
1582      26794 25.0  0.4 190420 38508 ?        S    12:15   0:00 /usr/bin/php-cgi -c php.ini
[..cutting some output..]
How can i poll the username, that belongs to a UID? ( a grep ':1582:' /etc/passwd doesn't work ;-) )
© Server Fault or respective owner