Hi, I'm using lsof -i -n "tcp@<ipaddr>:ftp" in a check script to see if a daemon is still running. In the USER field of the LISTEN output line I expect "root". But: when there is another user in /etc/passwd with uid 0 -- a user listed *after* root, that is on line 1 -- lsof sometimes (!) gives that other username back in its USER column i.s.o. "root".
Is this an lsof problem, a getpwuid problem, or shouldn't this be considered a problem at all? I always thought that getpwuid returns the first record matching the uid (I always see "ls" showing the primary names for a uid) and I would expect that lsof just calls getpwuid. Thanks for any help, -- -- Jos Vos <[EMAIL PROTECTED]> -- X/OS Experts in Open Systems BV | Phone: +31 20 6938364 -- Amsterdam, The Netherlands | Fax: +31 20 6948204 _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list
