Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: User Who Modified File

by roboticus (Canon)
on Sep 26, 2012 at 14:01 UTC ( #995775=note: print w/ replies, xml ) Need Help??


in reply to User Who Modified File

softworkz:

On a *nix system, you can use stat to get the UID (user ID) of the file, and cross reference it with /etc/passwd to match it to the user.

For a windows system, I found this link: http://support.microsoft.com/kb/218965. It contains some sample VB code that you should be able to translate to perl. Though you'll have to define the DLL references & such.

Update: I also found a bit of perl at http://stackoverflow.com/questions/4677180/how-to-get-file-owner-name.

...roboticus

When your only tool is a hammer, all problems look like your thumb.


Comment on Re: User Who Modified File

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995775]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2014-12-26 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (174 votes), past polls