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?
Asked
Active
Viewed 387 times
0
-
2You 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
1 Answers
1
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 https://stackoverflow.com/questions/656876/determine-uid-that-last-modified-a-file-in-linux