Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
2  
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
add comment

1 Answer

up vote 1 down vote accepted

You can use inotify and incron. Here there are some documentation: http://inotify.aiken.cz/?section=common&page=home&lang=en http://inotify.aiken.cz/?section=incron&page=why&lang=en http://stackoverflow.com/questions/656876/determine-uid-that-last-modified-a-file-in-linux

share|improve this answer
add comment

Your Answer

 
discard

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.