slloyd has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know of a way to get get the owner of a file on windows? Normally you would use getpwuid but that is not implimented in perl for windows.

2004-12-12 Edited by Arunbear: Changed title from 'getpwuid on windows', as per Monastery guidelines

  • Comment on getpwuid / Getting the file owner on Win32

Replies are listed 'Best First'.
Re: getpwuid / Getting the file owner on Win32
by tachyon (Chancellor) on Dec 11, 2004 at 00:48 UTC

    You probably want Win32::Perms from Dave Roth. It gives you more or less complete access to the NT perms model.

    cheers

    tachyon

Re: getpwuid / Getting the file owner on Win32
by jacques (Priest) on Dec 11, 2004 at 00:37 UTC
    You can use stat().