LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to find out who modified my file ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-out-who-modified-my-file-4175426992/)

newbie988 09-13-2012 12:48 AM

How to find out who modified my file ?
 
Hi,


Our group use vim 7.0 to modify program on rhel .
Is there any way to find out who modified my file on what time ?

Any message from you will be appreciated.

pan64 09-13-2012 12:56 AM

I do not think it is stored, but I do not know what kind of filesystem you use. Also version control systems can handle this (like git, svn ...)

qrange 09-13-2012 01:30 AM

hmm, you could use command 'last' to see when users were logged in, and compare that with file timestamp?

chrism01 09-13-2012 05:49 AM

If you've got access, check the bash history for each user.
Why do you need to know?
If its for security, get the ownerships/perms improved.
If its for a programming project, use a code ctrl system.

aniketmeshram 09-13-2012 12:49 PM

there is command

Quote:

stat filename
I think that should be it.

chrism01 09-13-2012 06:19 PM

No, it (stat) won't; it only tells you when it was changed, not who by....
http://linux.die.net/man/1/stat

As above, that sort of thing is not normally tracked by the system.


All times are GMT -5. The time now is 08:27 PM.