Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: User Who Modified File

by roboticus (Chancellor)
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 taking refuge in the Monastery: (10)
As of 2015-07-29 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls