Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
There's more than one way to do things
 
PerlMonks  

getpwuid / Getting the file owner on Win32

by slloyd (Hermit)
on Dec 10, 2004 at 19:04 UTC ( [id://414019]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

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 jacques (Priest) on Dec 10, 2004 at 19:37 UTC
    You can use stat().
Re: getpwuid / Getting the file owner on Win32
by tachyon (Chancellor) on Dec 10, 2004 at 19: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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://414019]
Approved by tachyon
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.