Hi Michel, Thanks for your help, but the code will run on windows2000server and the mapped drive points to a folder on novell server. The "getpwuid" is unimplemented in windows2000server perl. I would like to take the file´s ownership related to novell server NDS users.
Thanks again, Josimar ----- Original Message ----- From: "EUROSPACE SZARINDAR" <[EMAIL PROTECTED]> To: "'Josimar Nunes de Oliveira'" <[EMAIL PROTECTED]>; "Perl Beginners" <[EMAIL PROTECTED]> Sent: Wednesday, October 01, 2003 9:01 AM Subject: RE: owner's name of a file Hi Josimar, Have a look at perldoc -f stat and getpwuid. You should afterwards transform the $uid into the literal name of the user using /etc/passwd. try : $Uid = (stat('c:\Config.sys'))[4]; $UserName = ( getpwuid( $Uid ))[0]; Michel -----Message d'origine----- De: Josimar Nunes de Oliveira [mailto:[EMAIL PROTECTED] Date: lundi 22 septembre 2003 19:24 À: Perl Beginners Objet: owner's name of a file Hello, How to get the owner's name of a file in a mapped drive from novell server? My OS is W2K. Thanks, Josimar -- 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]