the User::pwent module works well for this. it contains a sub called
getpwent() that captures the information from /etc/passwd. check the docs
for it
there is also the getpwuid built in function you can use

> -----Original Message-----
> From: Ben Siders [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 20, 2003 2:48 PM
> 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]

Reply via email to