Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Due to development policies, all my relevant server files have g+w policies. This is working great, but, for added accountability, I'd like the files to change owner UID upon being edited by other users with group permission. Is this possible?

share|improve this question
You may want to consider source code management (svn or git). It will not only tell you who edited what files but what exactly they changed in each file. It will also allow you to undo any changes that turn out to be incorrect. – Chris Nava Apr 12 '12 at 13:53
How the files are being accessed (via HTTP, SMB, SSH, ..)? – Khaled Apr 12 '12 at 13:53
@ChrisNava I don't want to spend the HD space storing file history; I just want to know who last changed. – Ekevoo Apr 12 '12 at 14:24
@Khaled SSH-based methods only (such as standard shell, scp or SFTP). – Ekevoo Apr 12 '12 at 14:25
up vote 1 down vote accepted

You can use inotify and incron. Here there are some documentation:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.