How to map UID to user name using Perl library functions?
Posted
by Mike
on Stack Overflow
See other posts from Stack Overflow
or by Mike
Published on 2010-05-24T19:06:17Z
Indexed on
2010/05/24
19:31 UTC
Read the original article
Hit count: 203
I'm looking for a way of mapping a uid (unique number representing a system user) to a user name using Perl.
Please don't suggest grep
ing /etc/passwd :)
Edit
As a clarification, I wasn't looking for a solution that involved reading /etc/passwd explicitly. I realize that under the hood any solution would end up doing this, but I was searching for a library function to do it for me.
© Stack Overflow or respective owner