LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-13-2012, 12:48 AM   #1
newbie988
LQ Newbie
 
Registered: Sep 2012
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 09-13-2012, 12:56 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,969

Rep: Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333
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 ...)
 
Old 09-13-2012, 01:30 AM   #3
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
hmm, you could use command 'last' to see when users were logged in, and compare that with file timestamp?
 
Old 09-13-2012, 05:49 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,364

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
Old 09-13-2012, 12:49 PM   #5
aniketmeshram
LQ Newbie
 
Registered: Feb 2011
Distribution: OpenSUSE 10.3, Fedora, Ubuntu
Posts: 23

Rep: Reputation: 1
there is command

Quote:
stat filename
I think that should be it.
 
Old 09-13-2012, 06:19 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,364

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find out who has modified/edited a file? thomas2004ch Linux - Software 7 01-27-2011 09:40 AM
Find who modified the permission to a file ++nick++ Linux - Newbie 11 10-07-2009 12:50 AM
find command to search file modified b-RAM Linux - General 3 05-26-2009 11:39 PM
how to find out the user who modified a file in Linux venkat_k Programming 2 01-06-2009 02:51 AM
Find out if a file was modified in the last 2 minutes.... cricos Programming 5 04-06-2005 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration