perldoc -f getpwuid <SNIP> $uid = getpwnam($name); $name = getpwuid($num); $name = getpwent(); $gid = getgrnam($name); $name = getgrgid($num); <SNIP>
jab On Thu, 20 Feb 2003, Ben Siders wrote: > Date: Thu, 20 Feb 2003 13:48:01 -0600 > From: Ben Siders <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Is there a simple way to do uid -> username and usename -> uid > mapping? > > I've got a file for which I use 'stat' to acquire its information, but > stat gives you numeric uid and gids. I need to get to the actual > username and groupname. How can this be done? > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]