Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: User Who Modified File

by MidLifeXis (Prior)
on Sep 26, 2012 at 15:02 UTC ( #995792=note: print w/ replies, xml ) Need Help??


in reply to User Who Modified File

It sounds (from the terms being used) like you are on a Windows system. If, however, you are on a unix system, you should be aware of a few things.

This only works (under unix) if the OS captures extended usage logs, or the edit method creates a new file. An append or a open+trunc+write does not change ownership of the file.

usera$ grep groupa /etc/group groupa::1000:usera,userb usera$ touch foo usera$ chgrp groupa foo usera$ sudo chown userb foo usera$ ls -l foo -rw-rw-r-- 1 userb ... foo usera$ echo Hello World > foo usera$ ls -l foo -rw-rw-r-- 1 userb ... foo

That is not saying that it cannot be done, just that classical unix will not give the correct expected answers in all cases.

On a system with chown for non-superuser privileges, there are even more assumptions being made.

--MidLifeXis


Comment on Re: User Who Modified File
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2014-07-26 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls