sftp and changing file ownership
Hi all,Our developers use sftp to transfer files to our server. All the developers belong to the same group(developer) and the directories they upload to are group writeable which allows them to overwrite each others files. What I would like to do is configure sftp, if possible, to chown the overwritten file to the the user that is overwritting the file with sftp. Example:
programmer 1 creates a program and sftp's it to htdocs. The program file will be owned by programmer 1 and have group writeable permissions. Later, programmer 2 makes a change to this programmer 1's file and sftp's it to htdocs. I would like the ownership of the file to change to programmer 2's as owner.
I hope this makes sense.
Has anyone ever done this with sftp?
Thanks in advance.
Rodney