LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 01: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, 01:56 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
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, 02:30 AM   #3
qrange
Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable, amd64
Posts: 805

Rep: Reputation: 32
hmm, you could use command 'last' to see when users were logged in, and compare that with file timestamp?
 
Old 09-13-2012, 06:49 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
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, 01: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, 07:19 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:40 AM
Find who modified the permission to a file ++nick++ Linux - Newbie 11 10-07-2009 01:50 AM
find command to search file modified b-RAM Linux - General 3 05-27-2009 12:39 AM
how to find out the user who modified a file in Linux venkat_k Programming 2 01-06-2009 03:51 AM
Find out if a file was modified in the last 2 minutes.... cricos Programming 5 04-06-2005 03:57 PM


All times are GMT -5. The time now is 02:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration